Part Number Hot Search : 
HZK36 SMAJ70 HCT132 BG100A 24400 HCT132 CN10NG SK203
Product Description
Full Text Search
 

To Download WM9711LEFTRV Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  w wm9711l low power audio codec for portable applications wolfson microelectronics plc www.wolfsonmicro.com production data, april 2004, rev 4.1 copyright ? 2004 wolfson microelectronics plc description the wm9711l is a highly integrated input / output device designed for mobile computing and communications. the device can connect directly to mono or stereo microphones, stereo headphones and a mono speaker, reducing total component count in the system. additionally, phone input and output pins are provided for seamless integration with wireless communication devices. the wm9711l also offers five gpio pins for interfacing to buttons or other digital devices. to monitor the battery voltage in portable systems, the wm9711l has two uncommitted comparator inputs. all device functions are accessed and controlled through a single ac-link interface compliant with the ac?97 standard. additionally, the wm9711l can generate interrupts to indicate low battery, dead battery, thermal cut-out and gpio conditions. the wm9711l operates at supply voltages from 1.8 to 3.6 volts. each section of the chip can be powered down under software control to save power. the device is available in a small leadless 7x7mm qfn package, ideal for use in hand- held portable systems, or in the industry standard 48-pin tqfp package. features ? ac?97 rev 2.2 compatible stereo codec - dac snr 94db, thd ?87db - adc snr 92db, thd ?87db - variable rate audio, supports all wince sample rates - tone control, bass boost and 3d enhancement ? on-chip 45mw headphone driver ? on-chip 400mw mono speaker driver ? stereo, mono or differential microphone input - automatic level control (alc) ? auxiliary mono dac (ring tone or dc level generation) ? seamless interface to wireless chipset ? up to 5 gpio pins ? 2 comparator inputs for battery monitoring ? 1.8v to 3.6v supplies ? 7x7mm qfn or 48-pin tqfp package options applications ? personal digital assistants (pda) ? smartphones ? handheld and tablet computers block diagram
wm9711l production data w pd rev 4.1 april 2004 2 table of contents description .......................................................................................................1 features.............................................................................................................1 applications .....................................................................................................1 block diagram .................................................................................................1 table of contents .........................................................................................2 pin configuration...........................................................................................4 ordering information ..................................................................................4 pin description ................................................................................................5 absolute maximum ratings.........................................................................6 recommended operating conditions .....................................................6 electrical characteristics ......................................................................7 audio outputs.......................................................................................................... 7 audio inputs.............................................................................................................. 8 auxiliary mono dac (auxdac).............................................................................. 8 comparators ........................................................................................................... 8 reference voltages ............................................................................................. 9 digital interface characteristics.................................................................. 9 headphone / speaker output thd versus power ..................................... 10 power consumption............................................................................................ 11 device description .......................................................................................12 introduction.......................................................................................................... 12 audio paths overview......................................................................................... 13 audio inputs ....................................................................................................14 line input ................................................................................................................. 14 microphone input ................................................................................................. 14 phone input............................................................................................................. 16 pcbeep input ........................................................................................................... 17 audio adc..........................................................................................................18 record selector ................................................................................................. 19 record gain............................................................................................................ 20 automatic level control.................................................................................. 21 audio dacs .......................................................................................................24 stereo dac.............................................................................................................. 24 auxiliary dac.......................................................................................................... 27 analogue audio outputs ...........................................................................28 headphone outputs ? hpoutl and hpoutr.................................................. 28 ear speaker output ? out3 ............................................................................... 29 loudspeaker outputs ? lout2 and rout2.................................................... 30 phone output (monoout)................................................................................... 31 thermal cutout .................................................................................................... 31 jack insertion and auto-switching............................................................... 32 digital audio (spdif) output ............................................................................. 33 audio mixers ........................................................................................................... 34 variable rate audio / sample rate conversion ...............................36 battery alarm ...............................................................................................37 principle of operation ...................................................................................... 37 gpio and interrupt control ....................................................................40 power management .....................................................................................43
production data wm9711l w pd rev 4.1 april 2004 3 ac97 data and control interface .........................................................46 interface protocol............................................................................................ 46 interface timing ................................................................................................... 47 register map...................................................................................................50 register bits by address .................................................................................. 50 applications information .........................................................................59 recommended external components........................................................... 59 line output ............................................................................................................. 60 ac-coupled headphone output....................................................................... 61 dc coupled (capless) headphone output ................................................... 61 btl speaker output ............................................................................................. 62 combined headset / btl ear speaker............................................................. 62 combined headset / single-ended ear speaker......................................... 62 jack insert detection ........................................................................................ 63 hookswitch detection....................................................................................... 63 package drawing - qfn ...............................................................................64 package drawing ? tqfp ............................................................................65 important notice ..........................................................................................66 address:................................................................................................................... 66
wm9711l production data w pd rev 4.1 april 2004 4 pin configuration ordering information device temperature range package moisture sensitivity level peak soldering temperature wm9711left/v -25 to +85 o c 48-pin tqfp msl1 240 o c wm9711left/rv -25 to +85 o c 48-pin tqfp (tape and reel) msl1 240 o c wm9711lseft/v -25 to +85 o c 48-pin tqfp (lead free) msl1 260 o c wm9711lseft/rv -25 to +85 o c 48-pin tqfp (lead free, tape and reel) msl1 260 o c device temperature range package moisture sensitivity level peak soldering temperature wm9711lefl/v -25 to +85 o c 48-pin qfn msl3 240 o c wm9711lefl/rv -25 to +85 o c 48-pin qfn (tape and reel) msl3 240 o c wm9711lgefl/v -25 to +85 o c 48-pin qfn (lead free) msl3 260 o c wm9711lgefl/rv -25 to +85 o c 48-pin qfn (lead free, tape and reel) msl3 260 o c note : reel quantity = 2,200
production data wm9711l w pd rev 4.1 april 2004 5 pin description pin name type description 1 dbvdd supply digital i/o buffer supply 2 xtlin digital input clock crystal connection 1 / external clock input 3 xtlout digital output clock crystal connection 2 4 dgnd1 supply digital ground (return path for both dcvdd and dbvdd) 5 sdataout digital input serial data output from controller / input to wm9711l 6 bitclk digital output serial interface clock output to controller 7 dgnd2 supply digital ground (return path for both dcvdd and dbvdd) 8 sdatain digital output serial data input to controller / output from wm9711l 9 dcvdd supply digital core supply 10 sync digital input serial interface synchronisation pulse from controller 11 resetb digital input reset (active low, resets all registers to their default) 12 cref analogue input reference for analogue comparators (comp1,2,3) 13 avdd2 supply connect to avdd 14 nc no connect leave this pin floating 15 nc no connect leave this pin floating 16 nc no connect leave this pin floating 17 nc no connect leave this pin floating 18 agnd1 supply connect to agnd 19 pcbeep anal ogue input line input to analogue audio mixers, typically used for beeps 20 phone analogue input phone input (rx) 21 mic1 analogue input left microphone input 22 mic2 analogue input right microphone input 23 lineinl analogue input left line input 24 lineinr analogue input right line input 25 avdd supply analogue supply (feeds audio dacs, adcs, pgas, mic boost, mixers) 26 agnd supply analogue ground 27 vref analogue output internal reference voltage (buffered cap2) 28 micbias analogue output bias voltage for microphones (buffered cap2 1.8) 29 comp1 analogue input comparator input 1 30 comp2 analogue input comparator input 2 31 comp3 analogue input comparator input 3 32 cap2 analogue in / out internal reference voltage (normally avdd/2, if not overdriven) 33 monoout analogue output mono output, intended for phone tx signal 34 spkgnd supply speaker ground (feeds output buffers on pins 35 and 36) 35 lout2 analogue output left output 2 (speaker, line or headphone) 36 rout2 analogue output right output 2 (speaker, line or headphone) 37 out3 analogue output analogue output 3 (from auxdac or headphone pseudo-ground) 38 spkvdd s upply speaker supply (feeds output buffers on pins 35 and 36) 39 hpoutl analogue output headphone left output 40 hpgnd supply headphone ground (feeds output buffers on pins 37, 39, 41) 41 hpoutr analogue output headphone left output 42 agnd2 supply chip substrate, connect to agnd 43 hpvdd digital in / out headphone supply (feeds output buffers on pins 37, 39, 41) 44 gpio1 digital in / out gpio pin 1 45 gpio2 / irq digital in / out gpio pin 2 or irq (interrupt request) output 46 gpio3 digital in / out gpio pin 3 47 gpio4 digital in / out gpio pin 4 (on reset, pin level configures device power up status. see applications section for external components configuration) 48 gpio5 / spdif_out digital in / out gpio pin 5 or spdif digital audio output
wm9711l production data w pd rev 4.1 april 2004 6 absolute maximum ratings absolute maximum ratings are stress ratings only. permanent damage to the device may be caused by continuously operating at or beyond these limits. device functional operating limits and guaranteed performance specifications are given under electrical characteristics at the test conditions specified. esd sensitive device. this device is manufactured on a cmos process. it is therefore generically susceptible to damage from excessive static voltages. proper esd precautions must be taken during handling and storage of this device. wolfson tests its package types according to ipc/jedec j-std-020b for moisture sensitivity to determine acceptable storage conditions prior to surface mount assembly. these levels are: msl1 = unlimited floor life at <30 c / 85% relative humidity. not normally stored in moisture barrier bag. msl2 = out of bag storage for 1 year at <30 c / 60% relative humidity. supplied in moisture barrier bag. msl3 = out of bag storage for 168 hours at <30 c / 60% relative humidity. supplied in moisture barrier bag. the moisture sensitivity level for each package type is specified in ordering information. note: the tqfp version is classified as msl1 and does not require to be drybagged but will be supplied as such, labelled as msl1. condition min max digital supply voltages (dcvdd, dbvdd) -0.3v +3.63v analogue supply voltages (avdd, hpvdd, spkvdd) -0.3v +3.63v voltage range digital inputs dgnd -0.3v dbvdd +0.3v voltage range analogue inputs agnd -0.3v avdd +0.3v voltage range, comp3 (pin31) +5v operating temperature range, t a -25 o c +85 o c storage temperature (tqfp package only) -65 o c +150 o c recommended operating conditions parameter symbol test conditions min typ max unit digital input/output buffer supply range dbvdd 1.8 3.3 3.6 v digital core supply range dcvdd 1.8 3.3 3.6 v analogue supply range avdd, hpvdd, spkvdd 1.8 3.3 3.6 v digital ground dcgnd, dbgnd 0 v analogue ground agnd, hpgnd, spkgnd 0 v difference agnd to dgnd note 1 -0.3 0 +0.3 v notes: 1. agnd is normally the same potential as dgnd. 2. avdd, dcvdd and dbvdd can all be different 3. digital supplies (dcvdd, dbvdd) must not exceed analogue supplies (avdd, hpvdd, s pkvdd) by more t han 0.3v
production data wm9711l w pd rev 4.1 april 2004 7 electrical characteristics audio outputs test conditions dbvdd=3.3v, dcvdd = 3.3v, avdd=hpvdd=spkvdd =3.3v, t a = +25 o c, 1khz signal, fs = 48khz, 18-bit audio data unless otherwise stated. parameter symbol test conditions min typ max unit dac to line-out (hpoutl/r or monoout with 10k ? ? ? ? / 50pf load) full-scale output avdd = 3.3v, pga gains set to 0db 1 v rms signal to noise ratio (a-weighted) snr 85 94 db total harmonic distortion thd -3db output -87 -80 db power supply rejection psrr 20hz to 20khz 50 db speaker output (lout2/rout2 with 8 ? ? ? ? bridge tied load, inv=1) output power p o output power is very closely correlated with thd; see below. output power at 1% thd p o 400 mw abs. max output power p o max 500 mw total harmonic distortion thd p o =200mw -66 0.05 db % signal to noise ratio (a-weighted) snr 90 100 db headphone output (hpoutl/r, out3 or lout2/rout2 with 16 ? ? ? ? or 32 ? ? ? ? load) hpvdd=1.8v, r l =32 ? 5 mw p o =10mw, r l =16 ? -76 p o =10mw, r l =32 ? -73 p o =20mw, r l =16 ? -75 total harmonic distortion (note 1) thd p o =20mw, r l =32 ? -78 db signal to noise ratio (a-weighted) snr avdd=3.3v 90 95 db note: 1. all thd values are valid for the output power level quoted above ? for example, at hpvdd=3.3v and r l =16 ? , thd is ?76db when output power is 10mw. higher output power is possible, but will result in a deterioration in thd.
wm9711l production data w pd rev 4.1 april 2004 8 audio inputs test conditions dbvdd=3.3v, dcvdd = 3.3v, avdd = 3.3v, t a = +25 o c, 1khz signal, fs = 48khz, 18-bit audio data unless otherwise stated. parameter symbol test conditions min typ max unit lineinl/r, micl/r and phone pins avdd = 3.3v 1.0 avdd = 1.8v 0.545 full scale input signal level (for adc 0db input at 0db gain) v infs differential input mode (ms = 01) half of the value listed above v rms 0db pga gain 34 input resistance r in 12db pga gain 10 16 22 k ? input capacitance 5 pf line input to adc (lineinl, lineinr, phone) signal to noise ratio (a-weighted) snr 85 92 db total harmonic distortion thd -6dbfs -87 -80 db power supply rejection psrr 20hz to 20khz 50 db microphone input to adc (mic1/2 pins) signal to noise ratio (a-weighted) snr 20db boost enabled 80 db total harmonic distortion thd 20db boost enabled -80 db power supply rejection ratio psrr tbd 50 db common mode rejection ratio cmrr differential mic mode tbd db auxiliary mono dac (auxdac) test conditions avdd = 3.3v, t a = +25 o c, unless otherwise stated. parameter symbol test conditions min typ max unit resolution 12 bits full scale output voltage avdd=3.3v 1 vrms signal to noise ratio (a-weighted) snr 65 70 db total harmonic distortion thd -62 -50 db comparators test conditions avdd = 3.3v, t a = +25 o c, unless otherwise stated. parameter symbol test conditions min typ max unit comp1, comp2 and comp3 (pins 29, 30, 31) input voltage agnd avdd v input leakage current <10 na comparator input offset (comp1, comp2 only) -50 +50 mv comp2 delay (comp2 only) 24.576mhz crystal 0 10.9 s
production data wm9711l w pd rev 4.1 april 2004 9 reference voltages test conditions dbvdd=3.3v, dcvdd = 3.3v, avdd = 3.3v, t a = +25 o c, 1khz signal, fs = 48khz, 18-bit audio data unless otherwise stated. parameter symbol test conditions min typ max unit audio adcs, dacs, mixers reference input/output cap2 pin 1.6 1.65 1.7 v buffered reference output vref pin 1.6 1.65 1.7 v microphone bias bias voltage v micbias 2.88 2.97 3.06 v bias current source i micbias 3 ma output noise voltage v n 1k to 20khz 15 nv/ hz digital interface characteristics test conditions dbvdd = 3.3v, dcvdd = 3.3v, t a = +25 o c, unless otherwise stated. parameter symbol test conditions min typ max unit digital logic levels (all digital input or output pins) ? cmos levels input high level v ih dbvdd 0.7 v input low level v il dbvdd 0.3 v output high level v oh source current = 2ma dbvdd 0.9 output low level v ol sink current = 2ma dbvdd 0.1 clock frequency master clock (xtlin pin) 24.576 mhz ac?97 bit clock (bit_clk pin) 12.288 mhz ac?97 sync pulse (sync pin) 48 khz note: 1. all audio and non-audio sample rates and other timing scales proportionately with the master clock. 2. for signal timing on the ac-link, please refer to the ac?97 specification (revision 2.2)
wm9711l production data w pd rev 4.1 april 2004 10 headphone / speaker output thd versus power headphone power vs thd+n (32ohm load) -100 -80 -60 -40 -20 0 5 10 15 20 25 30 power (mw) thd+n (db) headphone power vs thd+n (16ohm load) -100 -80 -60 -40 -20 0 102030405060 power (mw) thd+n (db)
production data wm9711l w pd rev 4.1 april 2004 11 power consumption the power consumption of the wm9711l depends on the following factors. ? supply voltages: reducing the supply voltages also reduces digital supply currents, and therefore results in significant power savings especially in the digital sections of the wm9711l. ? operating mode: significant power savings can be achieved by always disabling parts of the wm9711l that are not used (e.g. audio adc, dac, auxdac, speaker driver, etc.) mode description 26h 14:8 24h 15:0 other settings total power v i (ma) v i (ma) v i (ma) (mw) off (lowest possible power) 1111111 0111111111111111 58h, svd = 1 3.3 0.0005 3.3 0 3.3 0 0.00165 clocks st opped 2.5 0.0004 2.5 0 2.5 0 0.001 1.8 0.0003 1.8 0 1.8 0 0.00054 lps (low power standby) 1111111 0111111111111111 3.3 0.005 3.3 0 3.3 0 0.0165 vref maintained using 1mohm string 2.5 0.004 2.5 0 2.5 0 0.01 1.8 0.003 1.8 0 1.8 0 0.0054 standby mode (ready to playback) 1110111 0111111111111111 3.3 0.56 3.3 0 3.3 0 1.848 vref maintained using 50kohm string 2.5 0.37 2.5 0 2.5 0 0.925 1.8 0.241 1.8 0 1.8 0 0.4338 "idle" mode 1100111 0111111111111111 3.3 1.1 3.3 0 3.3 0 3.63 vref maintained using 50kohm string 2.5 0.76 2.5 0 2.5 0 1.9 use lps mode instead, if possible 1.8 0.508 1.8 0 1.8 0 0.9144 phone call - using headphone / ear speaker 0110011 0111100010101100 0eh, bit 7 = 1 3.3 2.36 3.3 0 3.3 0 7.788 hpoutl, hpoutr and out3 active (mic gain boost) 2.5 1.838 2.5 0 2.5 0 4.595 ac-link stopped 1.8 1.218 1.8 0 1.8 0 2.1924 phone call - using loudspeaker 1110011 0111101100110100 0eh, bit 7 = 1 3.3 2.385 3.3 0 3.3 0 7.8705 ac-link stopped (mic gain boost) 2.5 1.837 2.5 0 2.5 0 4.5925 1.8 1.218 1.8 0 1.8 0 2.1924 record from mono microphone 1000110 0110101111111111 0eh, bit 7 = 1 3.3 3.27 3.3 11.21 3.3 2.6 56.364 with micbias (mic gain boost) 2.5 2.66 2.5 7.78 2.5 2.13 31.425 all analogue outputs disabled 1.8 1.838 1.8 5.21 1.8 1.41 15.2244 record phone call 0000000 0000000010001000 0eh, bit 7 = 1 3.3 9.461 3.3 12.22 3.3 2.62 80.1933 both sides mixed to mono (mic gain boost) 2.5 7.46 2.5 8.552 2.5 2.1 45.28 call using headphone / ear speaker 1.8 5.318 1.8 5.799 1.8 1.48 22.6746 dac playback - using loudspeaker 1000001 0001111101110111 3.3 3.45 3.3 9.884 3.3 2.6 52.5822 2.5 2.549 2.5 6.755 2.5 2.1 28.51 1.8 1.738 1.8 4.606 1.8 1.41 13.9572 dac playback - using headphone 0000001 0001110011101111 3.3 3.62 3.3 9.8 3.3 2.6 52.866 2.5 2.71 2.5 6.78 2.5 2.1 28.975 1.8 1.748 1.8 4.606 1.8 1.47 14.0832 dac playback - to line-out 0000001 0001110011110111 3.3 3.62 3.3 9.8 3.3 2.6 52.866 2.5 2.71 2.5 6.78 2.5 2.1 28.975 1.8 1.748 1.8 4.606 1.8 1.41 13.9752 maximum power (everything on) 0000000 0000000000000000 0eh, bit 7 = 1 3.3 9.593 3.3 12.26 3.3 2.62 80.7609 (mic gain boost) 2.5 7.37 2.5 8.563 2.5 2.12 45.1325 1.8 5.388 1.8 5.8 1.8 1.48 22.8024 avdd dcvdd dbvdd table 1 supply current consumption (simulation) notes: 1. all figures are at t a = +25 o c, audio sample rate fs = 48khz, with zero signal (quiescent). 2. the power dissipated in the headphone and speaker is not included in the above table.
wm9711l production data w pd rev 4.1 april 2004 12 device description introduction the wm9711l is designed to meet the mixed-signal requirements of portable and wireless computer systems. it includes audio recording and playback, analogue comparators for battery alarms, and gpio functions, all controlled through a single 5-wire ac-link interface. software support the basic audio features of the wm9711l are software compatible with standard ac?97 device drivers. however, to better support its unique and additional functions, wolfson microelectronics supplies custom device drivers for selected cpus and operating systems. please contact your local wolfson sales office for more information. ac?97 compatibility the wm9711l uses an ac?97 interface to communicate with a microprocessor or controller. the audio and gpio functions are largely compliant with ac?97 revision 2.2. the following differences from the ac?97 standard are noted: ? pinout: the function of some pins has been changed to support device specific features. the phone and pcbeep pins have been moved to different locations on the device package. ? package: the default package for the wm9711l is a 7 7mm leadless qfn package. however, it may also be supplied in a 48-pin tqfp package, as specified in the ac?97 standard. ? audio mixing: the wm9711l handles all the audio functions of a smartphone, including audio playback, voice recording, phone calls, phone call recording, ring tones, as well as simultaneous use of these features. the ac?97 mixer architecture does not fully support this. the wm9711l therefore uses a modified ac?97 mixer architecture with three separate mixers. ? tone control, bass boost and 3d enhancement: these functions are implemented in the digital domain and therefore affect only signals being played through the audio dacs, not all output signals as stipulated in ac?97. some other functions are additional to ac?97: ? on-chip btl loudspeaker driver ? on-chip btl driver for ear speaker (phone receiver) ? auxiliary mono dac for ring tones, system alerts etc. ? 2 analogue comparators for battery alarm ? programmable filter characteristics for tone control and 3d enhancement
production data wm9711l w pd rev 4.1 april 2004 13 audio paths overview linel pga l lout2 pin 35 monoout pin 33 r rout2 pin 36 out3 pin 37 liner micr dacr liner micr dacr phone pcbeep monomix phone pcbeep monomix micl micl alcl alcr alcl alcr left channel 18 bit adc variable slot 5c:1-0 (ass) 5c:3 (hpf) 5c:4 (adco) alc:5ch/60h/62h 12 bit resistor string dac 2eh/64h/12h:0(en) auxdac auxdac spkrmix spkrmix from linel pga from dacl to spkr mixer to spkr mixer left channel 18 bit dac 18h:12-8 00000 = +12db 11111 = -34.5db headphone mi xer l 1 8 h : 1 5 1 0 h : 1 5 0 a h : 1 5 - 1 2 phone mixer 1 8 h : 1 3 0ah7:4 1 a h : 1 3 - 1 1 10h:12-8 00000 = +12db 11111 = -34.5db 0ch:0-4 00000 = +12db 11111 = -34.5db 0eh:12-8 00000 = +12db 11111 = -34.5db 1ah: 10-8 1ah:14 0 = 0db 1 = 20db 18h:4-0 00000 = +12db 11111 = -34.5db 10h:5-0 00000 = +12db 11111 = -34.5db 0eh:5-0 00000 = +12db 11111 = -34.5db headphone mixer r 0 a h : 1 5 - 1 2 speaker mixer 1 0 h : 1 4 1 8 h : 1 4 0ch:14 0 a h : 1 1 - 8 right channel 18 bit adc variable slot 5c:1-0 (ass) 5c:3 (hpf) 5c:4 (adco) 1ah: 2-0 zero- cross detect 02h:12-8 00000 = 0db 11111 = -46.5db zero- cross detect 04h:12-8 00000 = 0db 11111 = -46.5db hpoutl pin 39 zero- cross detect 06h:4-0 00000 = 0db 11111 = -46.5db zero- cross detect 16h:4-0 00000 = 0db 11111 = -46.5db zero- cross detect 04h:4-0 00000 = 0db 11111 = -46.5db hpoutr pin 41 zero- cross detect 02h:4-0 00000 = 0db 11111 = -46.5db 0db / 20db oeh:6-5 (ms) alc:5ch/60h/62h 0eh:6-5 (ms) 5ch:8 (ds) 02h:6 (inv) 02h:7 (zc) 02h:15 (mute) 04h:7 (zc) 04h:15 (mute) 06h:7 (zc) 06h:15 (mute) 16h:7 (zc) 16h:15 (mute) 04h:7 (zc) 04h:15 (mute) 02h:7 (zc) 02h:15 (mute) 16h:10-9 (out3src) 16h:8 (src) 1ah:14 0 = 0db 1 = 20db 1ch:6 (grr=1) 1ch:5-0 11111 = +30db 00000 = -17.25db 1ch:6 (grr=0) 1ch:3:0 0000 = 0db 1111 = +22.5db 1ch:6 (grl=1) 1ch:13-8 11111 = +30db 00000 = -17.25db 1ch:13 (grl=0) 1ch:11:8 0000 = 0db 1111 = +22.5db slot 3 tone and 3d 08h / 22h / 20h:13 (3de) slot 4 tone and 3d 08h / 22h / 20h:13 (3de) ac link ac link ac link pcm pga pcm pga adc pga adc pga phone pga micl pga liner pga micr pga right channel 18 bit dac l line volume r line volume l headphone volume r headphone volume mono volume out3 volume 500k 500k 50k 50k pr3 (ref disable) & 58h:10 (svd) 3.6k 4.5k 1 0 h : 1 3 0 c h : 1 5 0 c h : 1 5 6db -> -15db 6db -> -15db 6db -> -15db 6db -> -15db 6db -> -15db 1 8 h : 1 3 1 8 h : 1 5 1 8 h : 1 4 1 0 h : 1 3 1 0 h : 1 5 1 0 h 1 4 1 4 h : 1 5 - 1 2 0 e h: 13 + 7 1 4 h : 1 5 - 1 2 14 h : 1 1- 7 14 h: 11 - 8 1 4 h : 1 1 - 7 1 4 h : 1 1 - 8 1 a h : 1 3 - 1 1 1 2 h : 1 5 - 1 2 1 2 h : 7 - 4 1 2 h : 1 5 - 1 2 12 h : 11 - 8 6db -> -15db 6db -> -15db 0db / 20db 6db -> -15db 6db -> -15db 6db -> -15db 6db -> -15db 0db / 20db 6db -> -15db 6db -> -15db 6db -> -15db 6db -> -15db 16h:8 (src) 1 0 1 0 1ch:15 (mute) gain ranges: gain ranges: 1ch:15 (mute) 14h:15-12 0 e h : 1 4 + 7 14h:15-12 1 0 adc left 20h:7 (loopback) ac link 1 0 adc right 20h:7 (loopback) 6db -> -15db 0db / 20db 0 1 micbias pin 28 lineinl pin 23 pcbeep pin 19 phone pin 20 mic1 pin 21 lineinr pin 24 mic2 pin 22 avdd pin 25 vref pin 27 agnd pin 24 cap2 pin 32 figure 1 audio paths overview
wm9711l production data w pd rev 4.1 april 2004 14 audio inputs the following sections give an overview of the analogue audio input pins and their function. for more information on recommended external components, please refer to the ?applications information? section. line input the lineinl and lineinr inputs are designed to record line level signals, and/or to mix into one of the analogue outputs. both pins are directly connected to the record selector. the record pga adjusts the recording volume, controlled by register 1ch or by the alc function. for analogue mixing, the line input signals pass through a separate pga, controlled by register 10h. the signals can be routed into all three output mixers (headphone, speaker and phone). each linein-to-mixer path has an independent mute bit. when the line inputs are not used, the line-in pga can be switched off to save power (see ?power management? section). lineinl and lineinr are biased internally to the reference voltage vref. whenever the inputs are muted or the device placed into standby mode, the inputs remain biased to vref using special anti- thump circuitry to suppress any audible clicks when changing inputs. register address bit label default description 12:8 lineinl vol 01000 (0db) lineinl input gain 00000: +12db ? (1.5db steps) 11111: -34.5db 4:0 lineinr vol 01000 (0db) lineinr input gain similar to lineinlvol 15 l2h 1 mute linein path to headphone mixer 1: mute, 0: no mute (on) 14 l2s 1 mute linein path to speaker mixer 1: mute, 0: no mute (on) 10h 13 l2p 1 mute linein path to phone mixer 1: mute, 0: no mute (on) table 2 line input control microphone input the mic1 and mic2 inputs are designed for direct connection to single-ended mono, stereo or differential mono microphone. if the microphone is mono, the same signal appears on both left and right channels. in stereo mode, mic1 is routed to the left and mic2 to the right channel. for voice recording, the microphone signal is directly connected to the record selector. the record pga adjusts the recording volume, controlled by register 1ch or by the alc function. for analogue mixing, the signal passes through a separate pga, controlled by register 0eh. the microphone signal can be routed into the phone mixer (for normal phone call operation) and/or the headphone mixer (using register 14h, see ?audio mixers / sidetone control? section), but not into the speaker mixer (to prevent acoustic feedback from the speaker into the microphone). when the microphone inputs are not used, the microphone pga can be switched off to save power (see ?power management? section). mic1 and mic2 are biased internally to the reference voltage vref. whenever the inputs are muted or the device placed into standby mode, the inputs remain biased to vref using special anti-thump circuitry to suppress any audible clicks when changing inputs.
production data wm9711l w pd rev 4.1 april 2004 15 it is also possible to use the lineinl and lineinr pins as a second differential microphone input. this is achieved by setting the ds bit (register 5ch, bit 11) to ?1?. this disables the line-in audio paths and routes the signal from lineinl and lineinr through the differential mic path, as if it came from the mic1 and mic2 pins. only one differential microphone be used at a time. the ds bit only has an effect when ms = 01 (differential mode). register address bit label default description 14 m12p 1 mute mic1 path to phone mixer 1: mute, 0: no mute (on) 13 m22p 1 mute mic2 path to phone mixer 1: mute, 0: no mute (on) 12:8 lmicvol 01000 (0db) left microphone volume only used when ms = 11 similar to micvol 7 20db 0 microphone gain boost (note 1) 1: 20db boost on 0: no boost (0db gain) microphone mode select 00 single-ended mono (left) left = right = mic1 (pin 21) volume controlled by micvol 01 differential mono mode left = right = mic1 ? mic2 volume controlled by micvol 10 single-ended mono (right) left = right = mic2 (pin 22) volume controlled by micvol 6:5 ms 00 11 : stereo mode mic1 = left, mic2 = right left volume controlled by lmicvol right volume controlled by micvol 0eh mic volume 4:0 micvol 01000 (0db) microphone volume to mixers 00000: +12db ? (1.5db steps) 11111: -34.5db reg 5ch additional analogue functions 8 ds 0 differential microphone select 0 : use mic1 and mic2 1: use linel and liner (note 2) table 3 microphone input control note: 1. the 20db gain boost acts on the input to the phone mixer only. a separate microphone boost for recording can be enabled using the boost bit in register 1ah. 2. when the linel and liner are selected for differential microphone select then the mic1 and mic2 input pins become disabled, these signals can therefore not be routed internally to the device. microphone bias the micbias output (pin 28) provides a low noise reference voltage suitable for biasing electret type microphones and the associated external resistor biasing network. the internal micbias circuitry is shown below. note that the maximum source current capability for micbias is 3ma. the external biasing resistors and microphone cartridge therefore must limit the micbias current to 3ma.
wm9711l production data w pd rev 4.1 april 2004 16 agnd micbias = 1.8 x cap2 = 0.9 x avdd cap2 wm9711l figure 2 microphone bias schematic phone input pin 20 (phone) is a mono, line level input designed to connect to the receive path of a telephony device. the pin connects directly to the record selector for phone call recording (note: to record both sides of a phone call, one adc channel should record the phone signal while the other channel records the mic signal). the recvol pga adjusts the recording volume, controlled by register 1ch or by the alc function. to listen to the phone signal, the signal passes through a separate pga, controlled by register 0ch. the signal can be routed into the headphone mixer (for normal phone call operation) and/or the speaker mixer (for speakerphone operation), but not into the phone mixer (to prevent forming a feedback loop). when the phone input is not used, the phone-in pga can be switched off to save power (see ?power management? section). phone is biased internally to the reference voltage vref. whenever the input is muted or the device placed into standby mode, the input remains biased to vref using special anti-thump circuitry to suppress any audible clicks when changing inputs. register address bit label default description 15 p2h 1 mute phone path to headphone mixer 1: mute, 0: no mute (on) 14 p2s 1 mute phone path to speaker mixer 1: mute, 0: no mute (on) 0ch phone input 4:0 phone vol 01000 (0db) phone input gain 00000: +12db ? (1.5db steps) 11111: -34.5db table 4 phone input control
production data wm9711l w pd rev 4.1 april 2004 17 pcbeep input pin 19 (pcbeep) is a mono, line level input intended for externally generated signal or warning tones. it is routed directly to the record selector and all three output mixers, without an input amplifier. the signal gain into each mixer can be independently controlled, with a separate mute bit for each signal path. register address bit label default description 15 b2h 1 mute pcbeep path to headphone mixer 1: mute, 0: no mute (on) 14:12 b2hvol 010 (0db) pcbeep to headphone mixer gain 000: +6db ? (3db steps) 111: -15db 11 b2s 1 mute pcbeep path to speaker mixer 1: mute, 0: no mute (on) 10:8 b2svol 010 (0db) pcbeep to s peaker mixer gain 000: +6db ? (3db steps) 111: -15db 7 b2p 1 mute pcbeep path to phone mixer 1: mute, 0: no mute (on) 0ah pcbeep input 6:4 b2pvol 010 (0db) pcbeep to phone mixer gain 000: +6db ? (3db steps) 111: -15db table 5 pcbeep control
wm9711l production data w pd rev 4.1 april 2004 18 audio adc the wm9711l has a stereo sigma-delta adc to digitise audio signals. the adc achieves high quality audio recording at low power consumption. the adc sample rate can be controlled by writing to a control register (see ?variable rate audio?). it is independent of the dac sample rate. to save power, the left and right adcs can be separately switched off using the pd11 and pd12 bits, whereas pr0 disables both adcs (see ?power management? section). if only one adc is running, the same adc data appears on both the left and right ac-link slots. high pass filter the wm9711l audio adc incorporates a digital high-pass filter that eliminates any dc bias from the adc output data. the filter is enabled by default. for dc measurements, it can be disabled by writing a ?1? to the hpf bit (register 5ch, bit 3). adc slot mapping by default, the output of the left audio adc appears on slot 3 of the sdatain signal (pin 8), and the right adc data appears on slot 4. however, the adc output data can also be sent to other slots, by setting the ass (adc slot select) control bits as shown below. register address bit label default description 3 hpf 0 high-pass filter disable 0: filter enabled (for audio) 1: filter disabled (for dc measurements) 5ch additional function control 1:0 ass 00 adc to slot m apping 00: left = slot 3, right = slot 4 (default) 01: left = slot 7, right = slot 8 10: left = slot 6, right = slot 9 11: left = slot 10, right = slot 11 table 6 adc slot mapping
production data wm9711l w pd rev 4.1 april 2004 19 record selector the record selector determines which input signals are routed into the audio adc. the left and right channels can be selected independently. this is useful for recording a phone call: one channel can be used for the rx signal and the other for the tx signal, so that both sides of the conversation are digitised. register address bit label default description 14 boost 0 20db boost 1: boost adc input signal by 20db 0 :no boost 13:12 r2p 11 record to phone path enable 00: left adc and right adc to phone mixer 01 : left adc to phone mixer 10: right adc to phone imixer 11 : muted 11 r2pboost 0 20db boost for adc to phone signal 1: boost signal by 20db 0 :no boost 10:8 recsl 000 left adc signal source 000: mic* (pre-pga) 001-010: reserved (do not use this setting) 011: speaker mix 100: lineinl (pre-pga) 101: headphone mix (left) 110: phone mix 111: phone (pre-pga) 1ah record select 2:0 recsr 000 right adc signal source 000: mic* (pre-pga) 001-010: reserved (do not use this setting) 011: speaker mix 100: lineinr (pre-pga) 101: headphone mix (right) 110: phone mix 111: phone (pre-pga) table 7 audio record selector note: *in stereo mic mode, mic1 is routed to the left adc and mic2 to the right adc. in all mono mic modes, the same signal (mic1, mic2 or mic1-mic2) is routed to both the left and right adcs. see ?microphone input? section for details.
wm9711l production data w pd rev 4.1 april 2004 20 record gain the amplitude of the signal that enters the audio adc is controlled by the record pga (programmable gain amplifier). the pga gain can be programmed either by writing to the record gain register, or by the automatic level control (alc) circuit (see next section). when the alc is enabled, any writes to the record gain register have no effect. two different gain ranges can be implemented: the standard gain range defined in the ac?97 standard, or an extended gain range with smaller gain steps. the alc circuit always uses the extended gain range, as this has been found to result in better sound quality. the output of the record pga can also be mixed into the phone and/or headphone outputs (see ?audio mixers?). this makes it possible to use the alc function for the microphone signal in a smartphone application. register address bit label default description 15 rmu 1 mute audio adc (both channels) 1: mute (off) 0: no mute (on) 14 grl 0 gain range select (left) 0: standard (0 to 22.5db, 1.5db step size) 1: extended (-17.25 to +30db, 0.75db steps) record volume (left) standard (grl=0) extended (grl=1) 13:8 recvoll 000000 xx0000: 0db xx0001: +1.5db ? (1.5db steps) xx1111: +22.5db 000000: -17.25db 000001: -16.5db ? (0.75db steps) 111111: +30db 7 zc 0 zero cross enable 0: record gain changes immediately 1: record gain changes when signal is zero or after time-out 6 grr 0 gain range select (right) similar to grl 1ch record gain 5:0 recvolr 000000 record volume (right) similar to recvoll table 8 record gain register
production data wm9711l w pd rev 4.1 april 2004 21 automatic level control the wm9711l has an automatic level control that aims to keep a constant recording volume irrespective of the input signal level. this is achieved by continuously adjusting the pga gain so that the signal level at the adc input remains constant. a digital peak detector monitors the adc output and changes the pga gain if necessary. hold time decay time attack time input signal signal after alc pga gain alc target level figure 3 alc operation the alc function is enabled using the alcsel control bits. when enabled, the recording volume can be programmed between ?6db and ?28.5db (relative to adc full scale) using the alcl register bits. hld, dcy and atk control the hold, decay and attack times, respectively: hold time is the time delay between the peak level detected being below target and the pga gain beginning to ramp up. it can be programmed in power-of-two (2 n ) steps, e.g. 2.67ms, 5.33ms, 10.67ms etc. up to 43.7s. alternatively, the hold time can also be set to zero. the hold time only applies to gain ramp-up, there is no delay before ramping the gain down when the signal level is above target. decay (gain ramp-up) time is the time that it takes for the pga gain to ramp up across 90% of its range (e.g. from ?15b up to 27.75db). the time it takes for the recording level to return to its target value therefore depends on both the decay time and on the gain adjustment required. if the gain adjustment is small, it will be shorter than the decay time. the decay time can be programmed in power-of-two (2 n ) steps, from 24ms, 48ms, 96ms, etc. to 24.58s. attack (gain ramp-down) time is the time that it takes for the pga gain to ramp down across 90% of its range (e.g. from 27.75db down to ?15b gain). the time it takes for the recording level to return to its target value therefore depends on both the attack time and on the gain adjustment required. if the gain adjustment is small, it will be shorter than the attack time. the attack time can be programmed in power-of-two (2 n ) steps, from 6ms, 12ms, 24ms, etc. to 6.14s. when operating in stereo, the peak detector takes the maximum of left and right channel peak values, and any new gain setting is applied to both left and right pgas, so that the stereo image is preserved. however, the alc function can also be enabled on one channel only. in this case, only one pga is controlled by the alc mechanism, while the other channel runs independently with its pga gain set through the control register.
wm9711l production data w pd rev 4.1 april 2004 22 register address bit label default description 15:14 alcsel 00 (off) alc function select 00 = alc off (pga gain set by register) 01 = right channel only 10 = left channel only 11 = stereo (pga registers unused) note: ensure that recvoll and recvolr settings (reg. 1ch) are the same before entering this mode. 13:11 maxgain 111 (+30db) pga gain limit for alc 111 = +30db 110 = +24db ?.(6db steps) 001 = -6db 000 = -12db 10:9 zc timeout 11 programmable zero cross timeout 11 2 17 x mclk period 10 2 16 x mclk period 01 2 15 x mclk period 00 2 14 x mclk period 62h alc / noise gate control 8 alczc 0 alc zero cross enable (overrides zc bit in register 1ch) 0: pga gain changes immediately 1: pga gain changes when signal is zero or after time-out 15:12 alcl 1011 (-12db) alc target ? sets signal level at adc input 0000 = -28.5db fs 0001 = -27.0db fs ? (1.5db steps) 1110 = -7.5db fs 1111 = -6db fs 11:8 hld 0000 (0ms) alc hold time before gain is increased. 0000 = 0ms 0001 = 2.67ms 0010 = 5.33ms ? (time doubles with every step) 1111 = 43.691s 7:4 dcy 0011 (192ms) alc decay (gain ramp-up) time 0000 = 24ms 0001 = 48ms 0010 = 96ms ? (time doubles with every step) 1010 or higher = 24.58s 60h alc control 3:0 atk 0010 (24ms) alc attack (gain ramp-down) time 0000 = 6ms 0001 = 12ms 0010 = 24ms ? (time doubles with every step) 1010 or higher = 6.14s table 9 alc control
production data wm9711l w pd rev 4.1 april 2004 23 maximum gain the maxgain register sets the maximum gain value that the pga can be set to whilst under the control of the alc. this has no effect on the pga when alc is not enabled. peak limiter to prevent clipping when a large signal occurs just after a period of quiet, the alc circuit includes a limiter function. if the adc input signal exceeds 87.5% of full scale (?1.16db), the pga gain is ramped down at the maximum attack rate (as when atk = 0000), until the signal level falls below 87.5% of full scale. this function is automatically enabled whenever the alc is enabled. (note: if atk = 0000, then the limiter makes no difference to the operation of the alc. it is designed to prevent clipping when long attack times are used). noise gate when the signal is very quiet and consists mainly of noise, the alc function may cause ?noise pumping?, i.e. loud hissing noise during silence periods. the wm9711l has a noise gate function that prevents noise pumping by comparing the signal level at the input pins (i.e. before the record pga) against a noise gate threshold, ngth. provided that the noise gate function is enabled (ngat = 1), the noise gate cuts in when: ? signal level at adc [db] < ngth [db] + pga gain [db] + mic boost gain [db] this is equivalent to: ? signal level at input pin [db] < ngth [db] the pga gain is then held constant (preventing it from ramping up as it normally would when the signal is quiet). if the ngg bit is set, the adc output is also muted when the noise gate cuts in. the table below summarises the noise gate control register. the ngth control bits set the noise gate threshold with respect to the adc full-scale range. the threshold is adjusted in 1.5db steps. levels at the extremes of the range may cause inappropriate operation, so care should be taken with set?up of the function. note that the noise gate only works in conjunction with the alc function, and always operates on the same channel(s) as the alc (left, right, both, or none). register address bit label default description 7 ngat 0 noise gate function enable 1 = enable 0 = disable 5 ngg 0 noise gate type 0 = pga gain held constant 1 = mute adc output 62h alc / noise gate control 4:0 ngth(4:0) 00000 noise gate threshold -76.5dbfs -75dbfs ? 1.5 db steps 11110 -31.5dbfs 11111 -30dbfs table 10 noise gate control
wm9711l production data w pd rev 4.1 april 2004 24 audio dacs stereo dac the wm9711l has a stereo sigma-delta dac that achieves high quality audio playback at low power consumption. digital tone control, adaptive bass boost and 3-d enhancement functions operate on the digital audio data before it is passed to the stereo dac. (contrary to the ac?97 specification, they have no effect on analogue input signals or signals played through the auxiliary dac. nevertheless, the id2 and id5 bits in the reset register, 00h, are set to ?1? to indicate that the wm9711l supports tone control and bass boost.) the dac output has a pga for volume control. the dac sample rate can be controlled by writing to a control register (see ?variable rate audio?). it is independent of the adc sample rate. the left and right dacs can be separately powered down using the pd13 and pd14 control bits, whereas the pr1 bit disables both dacs (see ?power management? section). stereo dac volume the volume of the dac output signal is controlled by a pga (programmable gain amplifier). it can be mixed into the headphone, speaker and phone output paths (see ?audio mixers?). register address bit label default description 15 d2h 1 mute dac path to headphone mixer 1: mute, 0: no mute (on) 14 d2s 1 mute dac path to speaker mixer 1: mute, 0: no mute (on) 13 d2p 1 mute dac path to phone mixer 1: mute, 0: no mute (on) 12:8 dacl vol 01000 (0db) left dac volume 00000: +12db ? (1.5db steps) 11111: -34.5db 18h dac volume 4:0 dacr vol 01000 (0db) right dac volume similar to daclvol 15 amute n/a read-only bit to indicate auto-muting 1: dac auto-muted 0: dac not muted 5ch additional functions (1) 7 amen 0 dac auto-mute enable 1: automatically mutes analogue output of stereo dac if digital input is zero 0: auto-mute off table 11 stereo dac volume control
production data wm9711l w pd rev 4.1 april 2004 25 tone control / bass boost the wm9711l provides separate controls for bass and treble with programmable gains and filter characteristics. this function operates on digital audio data before it is passed to the audio dacs. bass control can take two different forms: ? linear bass control: bass signals are amplified or attenuated by a user programmable gain. this is independent of signal volume, and very high bass gains on loud signals may lead to signal clipping. ? adaptive bass boost: the bass volume is amplified by a variable gain. when the bass volume is low, it is boosted more than when the bass volume is high. this method is recommended because it prevents clipping, and usually sounds more pleasant to the human ear. treble control applies a user programmable gain, without any adaptive boost function. treble, linear bass and 3d enhancement can all produce signals that exceed full-scale. in order to avoid limiting under these conditions, it is recommended to set the dat bit to attenuate the digital input signal by 6db. the gain at the outputs should be increased by 6db to compensate for the attenuation. cut-only tone adjustment and adaptive bass boost cannot produce signals above full- scale and therefore do not require the dat bit to be set. register address bit label default description 15 bb 0 bass boost 0 = off 1 = on 12 bc 0 bass cut-off frequency 0 = low (130hz at 48khz sampling) 1 = high (200hz at 48khz sampling) bass intensity code bb=0 (normal) bb=1 (boost) 0000 +9db 15 (max) 0001 +9db 14 0010 +7.5db 13 ? (1.5db steps) ? 0111 0db 8 ? (1.5db steps) ? 1011-1101 -6db 4-2 1110 -6db 1 (min) 11:8 bass 1111 (off) 1111 bypass (off) 6 dat 0 -6db attenuation 0 = off 1 = on 4 tc 0 treble cut-off frequency 0 = high (8khz at 48khz sampling) 1 = low (4khz at 48khz sampling) 08h dac tone control 3:0 trbl 1111 (disabled) treble intensity 0000 or 0001 = +9db 0010 = +7.5db ? (1.5db steps) 1011 to 1110 = -6db 1111 = treble control disabled table 12 dac tone control note: 1. all cut-off frequencies change proportionally with the dac sample rate.
wm9711l production data w pd rev 4.1 april 2004 26 3d stereo enhancement the 3d stereo enhancement function artificially increases the separation between the left and right channels by amplifying the (l-r) difference signal in the frequency range where the human ear is sensitive to directionality. the programmable 3d depth setting controls the degree of stereo expansion introduced by the function. additionally, the upper and lower limits of the frequency range used for 3d enhancement can be selected using the 3dfilt control bits. register address bit label default description 20h general purpose 13 3de 0 (disabled) 3d enhancement enable 5 3dlc 0 lower cut-off frequency 0 = low (200hz at 48khz sampling) 1 = high (500hz at 48khz sampling) 4 3duc 0 upper cut-off frequency 0 = high (2.2khz at 48khz sampling) 1 = low (1.5khz at 48khz sampling) 22h dac 3d control 3:0 3ddepth 0000 3d depth 0000: 0% (minimum 3d effect) 0001: 6.67% ? 1110: 93.3% 1111: 100% (maximum) table 13 stereo enhancement control note: 1. all cut-off frequencies change proportionally with the dac sample rate.
production data wm9711l w pd rev 4.1 april 2004 27 auxiliary dac auxdac is a simple 12-bit mono dac. it can be used to generate dc signals (with the numeric input written into a control register), or ac signals such as telephone-quality ring tones or system beeps (with the input signal supplied through an ac-link slot). in ac mode (xsle = 1), the input data is binary offset coded; in dc mode (xsle = 0), there is no offset. the analogue output of auxdac is routed directly into the output mixers. the signal gain into each mixer can be adjusted at the mixer inputs using control register 12h. in slot mode (xsle = 1), the auxdac also supports variable sample rates (see ?variable rate audio? section). when the auxiliary dac is not used, it can be powered down by setting axe = 0. this is also the default setting. register address bit label default description 15 xsle 0 auxdac input selection 0: from auxdacval (for dc signals) 1: from ac-link slot selected by auxdacslt (for ac signals) 14:12 auxdac slt 000 auxdac input selection 000 ? slot 5, bits 8-19 (with xsle=1) 001 ? slot 6, bits 8-19 (with xsle=1) 010 ? slot 7, bits 8-19 (with xsle=1) 011 ? slot 8, bits 8-19 (with xsle=1) 100 ? slot 9, bits 8-19 (with xsle=1) 101 ? slot 10, bits 8-19 (with xsle=1) 110 ? slot 11, bits 8-19 (with xsle=1) 111 ? reserved (do not use) 64h audac input control 11:0 auxdac val 000h auxdac digital input (with xsle=0) 000h: minimum fffh: full-scale 15 a2h 1 mute auxdac path to headphone mixer 1: mute, 0: no mute (on) 14:12 a2hvol 010 (0db) auxdac to headphone mixer gain 000: +6db ? (3db steps) 111: -15db 11 a2s 1 mute auxdac path to speaker mixer 1: mute, 0: no mute (on) 10:8 a2svol 010 (0db) auxdac to speaker mixer gain 000: +6db ? (3db steps) 111: -15db 7 a2p 1 mute auxdac path to phone mixer 1: mute, 0: no mute (on) 6:4 a2pvol 010 (0db) auxdac to phone mixer gain 000: +6db ? (3db steps) 111: -15db 12h auxdac output control 0 axe 0 0: auxdac off 1: auxdac enabled table 14 auxdac control
wm9711l production data w pd rev 4.1 april 2004 28 analogue audio outputs the following sections give an overview of the analogue audio output pins. for more information on recommended external components, please refer to the ?applications information? section. headphone outputs ? hpoutl and hpoutr the hpoutl and hpoutr (pins 39 and 41) are designed to drive a 16 ? or 32 ? headphone or a line output. they can also be used as line-out pins. the output signal is produced by the headphone mixer. the signal volume on hpoutl and hpoutr can be independently adjusted under software control by writing to register 04h. when hpoutl and hpoutr are not used, the output drivers can be disabled to save power (see ?power management? section). both pins remain at the same dc level (the reference voltage vref) when they are disabled, so that no click noise is produced. register address bit label default description 15 mute 1 mute hpoutl and hpoutr 1: mute (off) 0: no mute (on) 13:8 hpoutlvol 000000 (0db) hpoutl volume 000000: 0db (maximum) 000001: -1.5db ? (1.5db steps) 011111: -46.5db 1xxxxx: -46.5db 7 zc 0 zero cross enable 0: change gain immediately 1: change gain only on zero crossings, or after time-out 04h hpoutl / hpoutr volume 5:0 hpoutrvol 00000 (0db) hpoutr volume similar to hpoutlvol table 15 hpoutl / hpoutr control
production data wm9711l w pd rev 4.1 april 2004 29 ear speaker output ? out3 pin 37 (out3) has a buffer that can drive load impedances down to 16 ? . it can be used to: ? drive an ear speaker (phone receiver). the speaker can be connected differentially between out3 and hpoutl, or in single-ended configuration (out3 to hpgnd). the ear speaker output is produced by the headphone mixer. the right signal must be inverted (out3inv = 1), so that the left and right channel are mixed to mono in the speaker [l?(-r) = l+r]. ? eliminate the dc blocking capacitors on hpoutl and hpoutr. in this configuration, out3 produces a buffered midrail voltage (avdd/2) and is connected to the headphone socket?s ground pin (see ?applications information?) ? produce the inverse of the monoout signal, for a differential mono output. note: out3 can only handle one of the above functions at any given time. register address bit label default description 15 mute 1 mute out3 1: mute (buffer off) 0: no mute (buffer on) source of out3 signal 00 inverse of hpoutr (for btl ear speaker) 01 vref (for capless headphone drive) 10 mono mix of both headphone channels (for single-ended ear speaker) 10:9 out3 src 00 11 inverse of monoout (for differential mono output) 7 zc 0 zero cross enable 0: change gain immediately 1: change gain only on zero crossings, or after time-out 16h out3 control 5:0 out3 vol 000000 (0db) out3 volume 000000: 0db (maximum) 000001: -1.5db ? (1.5db steps) 011111: -46.5db 1xxxxx: -46.5db table 16 out3 control
wm9711l production data w pd rev 4.1 april 2004 30 loudspeaker outputs ? lout2 and rout2 the lout2 and rout2 outputs are designed to differentially drive an 8 ? mono speaker. they can also be used as a stereo line-out or headphone output. for speaker drive, the lout2 signal must be inverted (inv = 1), so that the left and right channel are added up in the speaker [r?(-l) = r+l]. register address bit label default description 15 mute 1 mute lout2 and rout2 1: mute (off) 0: no mute (on) 13:8 lout2vol 00000 (0db) lout2 volume 000000: 0db (maximum) 000001: -1.5db ? (1.5db steps) 011111: -46.5db 1xxxxx: -46.5db 7 zc 0 zero cross enable 0: change gain immediately 1: change gain only on zero crossings, or after time-out 6 inv 0 lout2 invert 0 = no inversion (0 phase shift) 1 = signal inverted (180 phase shift) 02h lout2/rout2 volume 5:0 rout2vol 00000 (0db) rout2 volume similar to lout2vol 16h 8 src 0 source of lout2/rout2 signals 0: speaker mixer (for btl speaker) 1: headphone mixer (for stereo output) table 17 lout2 / rout2 control note: 1. for btl speaker drive, it is recommended that lout2vol = rout2vol.
production data wm9711l w pd rev 4.1 april 2004 31 phone output (monoout) the monoout output (pin 33) is intended for connection to the tx side of a wireless chipset. the signal is generated in a dedicated mono mixer; it is not necessarily a mono mix of the stereo outputs hpoutl/r or lout2/rout2 (see ?audio mixers? section). the monoout volume can be controlled by writing to register 06h. when monoout is not used, the output buffer can be disabled to save power (see ?power management? section). the monoout pin remains at the same dc level (the reference voltage on the vref pin), so that no click noise is produced when muting or un-muting. register address bit label default description 15 mute 1 mute monoout 1: mute 0: no mute 7 zc 0 zero cross enable 0: change gain immediately 1: change gain only on zero crossings, or after time-out 06h monoout volume 4:0 monoout vol 00000 (0db) monoout volume 00000: 0db (maximum) 00001: -1.5db ? (1.5db steps) 11111: -46.5db table 18 monoout control thermal cutout the speaker and headphone outputs can drive very large currents. to protect the wm9711l from becoming too hot, a thermal cutout has been built in. if the chip temperature reaches approximately 150 c, and the ent bit is set, the wm9711l deasserts gpio bit 11 in register 54h, a virtual gpio that can be set up to generate an interrupt to the cpu (see ?gpio and interrupt control? section). register address bit label default description 5ch 2 ent 0 enable thermal cutout 0: disabled 1: enabled 54h 11 ti 1 thermal cutout (virtual gpio) 1: temperature below 150 c 0: temperature above 150 c see also ?gpio and interrupt control? section. table 19 thermal cutout control
wm9711l production data w pd rev 4.1 april 2004 32 jack insertion and auto-switching in a phone application, a btl ear speaker may be connected across out3 and hpoutl, and a stereo headphone on hpoutl and hpoutr. typically, only one of these two output devices is used at any given time: when no headphone is plugged in, the btl ear speaker is active, otherwise the headphone is used. the presence of a headphone can be detected using gpio1 (pin 44) and an external pull-up resistor (see ?applications information? section for a circuit diagram). when the jack is inserted gpio1 is pulled low by a switch on the socket. when the jack is removed gpio1 is pulled high by a resistor. if the jien bit is set, the wm9711l automatically switches between headphone and ear speaker, as shown below. register address bit label default description 12 jien 0 jack insert enable ? takes output of gpio1 logic 58h additional functional control 11 frc 0 force ear speaker mode see table below table 20 jack insertion / auto-switching (1) jien frc gpio1 mode description out3 state hpoutl volume hpoutr volume out3 volume hpoutl/ hpoutr state 0 0 x jack insert detection disabled (headphone and ear speaker can be used at the same time) set by reg. 24h and 26h 1 0 0 jack insert detection enabled, headphone plugged in disabled set by reg. 04h 1 x 1 jack insert detection enabled, headphone not plugged in 0 1 x force ear speaker mode set by reg. 24h and 26h set by reg. 16h set by reg. 04h set by reg. 16h set by reg. 24h and 26h 1 1 x invalid; do not use this setting table 21 jack insertion / auto-switching (2)
production data wm9711l w pd rev 4.1 april 2004 33 digital audio (spdif) output the wm9711l supports the spdif standard using pin 47 as its output. note that pin 47 can also be used as a gpio pin. the ge5 bit (register 56h, bit 5) selects between gpio and spdif functionality (see ?gpio and interrupt control? section). register 3ah is a read/write register that controls spdif functionality and manages bit fields propagated as channel status (or sub-frame in the v case). with the exception of v, this register should only be written to when the spdif transmitter is disabled (spdif bit in register 2ah is ?0?). once the desired values have been written to this register, the contents should be read back to ensure that the sample rate in particular is supported, then spdif validity bit spcv in register 2ah should be read to ensure the desired configuration is valid. only then should the spdif enable bit in register 2ah be set. this ensures that control and status information start up correctly at the beginning of spdif transmission. register address bit label default description 10 spcv 0 spdif validity bit (read-only) 5:4 spsa 00 spdif slot assignment (adco = 0) 00: slots 3, 4 01: slots 6, 9 10: slots 7, 8 11: slots 10, 11 2ah extended audio 2 sen 0 spdif output enable 1 = enabled, 0 = disabled 15 v 0 validity bit; ?0? indicates frame valid, ?1? indicates frame not valid 14 drs 0 double rate spdif support; not supported by wm9705 therefore fixed ?0? 13:1 2 spsr 10 spdif sample rate; wm 9705 supports only 48khz = ?10?. this value is fixed. 11 l 0 generation level; programmed as required by user 10:4 cc 0000000 category code; programmed as required by user 3 pre 0 pre-emphasis; ?0? indicates not pre- emphasis, ?1? indicates 50/15us pre- emphasis 2 copy 0 copyright; ?0? indicates copyright is not asserted, ?1? indicates copyright 1 audib tbd non-audio; ?0? indicates data is pcm, ?1? indicates non-pcm format (eg dd or dts) 3ah spdif control register 0 pro tbd professional; ?0? indicates consumer, ?1? indicates professional 5ch additional function control 4 adco 0 source of spdif data 0: spdif data comes from sdataout (pin 5), slot selected by spsa 1: spdif data comes from audio adc table 22 spdif output control
wm9711l production data w pd rev 4.1 april 2004 34 audio mixers mixer overview the wm9711l has three separate low-power audio mixers to cover all audio functions required by smartphones, pdas and handheld computers. the diagram below shows the routing of the analogue audio signals into the mixers. the numbers at the mixer inputs refer to the control register bits that control the volume and muting for that particular signal. phone_in pcbeep line_in stereo headphone / headset hpoutl hpoutr hpvol (reg 04h) monoout (phone tx) out3vol (reg 16h) lout2 rout2 out2vol (reg 02h) loud speaker out3 ear speaker 0ch [4:0] 10h [12:8,4:0] 18h [12:8,4:0] record select 0eh [12:8,4:0] micr micl diff / stereo/ mono (reg 20h) stereo dac aux dac (12-bit) 1ch / alc 0/20 db 0eh [7] m u x monoout vref 18h [15] 10h [15] 14h [15:12] 14h [11:7] 0ch [15] 12h [15:12] 18h [13] 10h [13] 0eh [14,13] 1ah [13:11] 0ah [15:12] head phone/ ear speaker mix phone mix 12h [7:4] 0ah [7:4] -1 m u x 12h [11:8] 18h [14] 10h [14] 0ah [11:8] 0ch [14] back speaker mix src (reg 16h) out3src (reg 16h) stereo adc m u x phone mix headphone mix back spkr mix inv (reg 02h) 1ah [14] 0/20 db figure 4 audio mixer overview headphone mixer the headphone mixer drives the hpoutl and hpoutr outputs. it also drives out3, if this pin is connected to an ear speaker (phone receiver). the following signals can be mixed into the headphone path: ? phone (controlled by register 0ch, see ?audio inputs?) ? line_in (controlled by register 10h, see ?audio inputs?) ? the output of the record pga (see ?audio adc?, ?record gain?) ? the stereo dac signal (controlled by register 18h, see ?audio dacs?) ? the mic signal (controlled by register 0eh, see ?audio inputs?) ? pc_beep (controlled by register 0ah, see ?audio inputs?) ? the auxdac signal (controlled by register 12h, see ?auxiliary dac?) in a typical smartphone application, the headphone signal is a mix of phone and sidetone (for phone calls) and the stereo dac signal (for music playback).
production data wm9711l w pd rev 4.1 april 2004 35 speaker mixer the speaker mixer drives the lout2 and rout2 output. the following signals can be mixed into the speaker path: ? phone (controlled by register 0ch, see ?audio inputs?) ? line_in (controlled by register 10h, see ?audio inputs?) ? the stereo dac signal (controlled by register 18h, see ?audio dacs?) ? pc_beep (controlled by register 0ah, see ?audio inputs?) ? the auxdac signal (controlled by register 12h, see ?auxiliary dac?) in a typical smartphone application, the speaker signal is a mix of auxdac (for system alerts or ring tone playback), phone (for speakerphone function), and pc_beep (for externally generated ring tones). mono mixer the mono mixer drives the monoout pin. the following signals can be mixed into monoout: ? line_in (controlled by register 10h, see ?audio inputs?) ? the output of the record pga (see ?audio adc?, ?record gain?) ? the stereo dac signal (controlled by register 18h, see ?audio dacs?) ? the mic signal (controlled by register 10h, see ?audio inputs?) ? pc_beep (controlled by register 0ah, see ?audio inputs?) ? the auxdac signal (controlled by register 12h, see ?auxiliary dac?) in a typical smartphone application, the monoout signal is a mix of the amplified microphone signal (possibly with automatic gain control) and (if enabled) an audio playback signal from the stereo dac or the auxiliary dac. side tone control the side tone path is into the headphone mixer and is either from the mic or alc path (with no 20db boost) register address bit label default description 15 stm 1 mic side tone select 0: selected 1 : not selected (path muted) 14:12 stvol 010 (0db) mic sidetone volume 000 : +6db (max.) 001: +3db ? (3db steps) 111 : -15db (min.) 11:10 alcm 11 alc side tone select 11: mute 10: mono ? left 01: mono ? right 00: stereo 14h sidetone control 9:7 alcvol 010 (0db) alc sidetone volume similar to stvol table 23 side tone control
wm9711l production data w pd rev 4.1 april 2004 36 variable rate audio / sample rate conversion by using an ac?97 rev2.2 compliant audio interface, the wm9711l can record and playback at all commonly used audio sample rates, and offer full split-rate support (i.e. the dac, adc and auxdac sample rates are completely independent of each other ? any combination is possible). the default sample rate is 48khz. if the vra bit (register 20h) is set and the appropriate block is enabled, then other sample rates can be selected by writing to registers 2ch, 32h and 2eh. the ac- link continues to run at 48k frames per second irrespective of the sample rate selected. however, if the sample rate is less than 48khz, then some frames do not carry an audio sample. register address bit label default description 2ah extended audio stat/ctrl 0 vra 0 (off) variable rate audio 0: off (dac and adc run at 48khz) 1: on (sample rates determined by registers 2ch, 2eh and 32h) 2ch audio dac sample rate 15:0 dacsr bb80h (48khz) audio dac sample rate 1f40h: 8khz 2b11h: 11.025khz 2ee0h: 12khz 3e80h: 16khz 5622h: 22.05khz 5dc0h: 24khz 7d00h: 32khz ac44h: 44.1khz bb80h: 48khz any other value defaults to the nearest supported sample rate 32h audio adc sample rate 15:0 adcsr bb80h (48khz) audio adc sample rate similar to dacsr 2eh auxdac sample rate 15:0 auxda csr bb80h (48khz) auxdac sample rate similar to dacsr table 24 audio sample rate control
production data wm9711l w pd rev 4.1 april 2004 37 battery alarm principle of operation the wm9711l has two on-chip comparators that can be used to implement a battery alarm function, or other functions such as a window comparator. each comparator has one of its inputs tied to any one of three device pins and the other tied to a voltage reference. the voltage reference can be either internally generated (vref = avdd/2) or externally connected on cref (pin 12). the comparator output signals are passed to the gpio logic block (see ?gpio and interrupt control? section), where they can be used to send an interrupt to the cpu via the ac-link or via the irq pin, and / or to wake up the wm9711l from sleep mode. comp1 (pin 29) corresponds to gpio bit 15 and comp2 (pin30) to bit 14. register address bit label default description 15 cp1 1 comp1 polarity (see also ?gpio and interrupt control?) 0: alarm when comp1 voltage is above vref 1: alarm when comp1 voltage is below vref 4eh 14 cp2 1 comp2 polarity (see also ?gpio and interrupt control?) 0: alarm when comp2 voltage is above vref 1: alarm when comp2 voltage is below vref 58h 15:13 comp2 del 0 low battery alarm delay 000: no delay 001: 0.17s (2 13 = 8192 ac-link frames) 010: 0.34s (2 14 = 16384 ac-link frames) 011: 0.68s (2 15 = 32768 ac-link frames) 100: 1.4s (2 16 = 65536 ac-link frames) 101: 2.7s (2 17 = 131072 ac-link frames) 110: 5.5s (2 18 = 262144 ac-link frames) 111: 10.9s (2 19 = 524288 ac-link frames) table 25 comparator control register address bit label default description comparator 1 reference voltage 0 vref = avdd/2 14 c1ref 0 1 wiper/aux4 (pin 12) comparator 1 signal source 00 avdd/2 when c1ref=?1?. otherwise comparator 1 is powered down 01 comp1/aux1 (pin 29) 10 comp2/aux2 (pin 30) 13:12 c1src 00 11 bmon/aux3 (pin 31) comparator 2 reference voltage 0 vref = avdd/2 11 c2ref 0 1 wiper/aux4 (pin 12) comparator 2 signal source 00 avdd/2 when c2ref=?1?. otherwise comparator 2 is powered down 01 comp1/aux1 (pin 29) 10 comp2/aux2 (pin 30) 5ch additional analogue functions 10:9 c2src 00 11 bmon/aux3 (pin 31) table 26 comparator reference and source control
wm9711l production data w pd rev 4.1 april 2004 38 comp2 delay function comp2 has an optional delay function for use when the input signal is noisy. when comp2 triggers and the delay is enabled (i.e. comp2del is non-zero), then gpio bit 14 does not change state immediately, and no interrupt is generated. instead, the wm9711l starts a delay timer and checks comp2 again after the delay time has passed. if comp2 is still active, then the gpio bit is set and an interrupt may be generated (depending on the state of the gw14 bit). if comp2 is no longer active, the gpio bit is not set, i.e. all register bits are as if comp2 had never triggered. note: if comp2 triggers while the wm9711l is in sleep mode, and the delay is enabled, then the device starts the on-chip crystal oscillator in order to count the time delay. comp2 triggers start timer comp2? wait time=comp2del shut down timer inactive active set gi14 end end [false alarm] comp2 del? non-zero c2w? 0 end 1 000 figure 5 comp2 delay flow chart
production data wm9711l w pd rev 4.1 april 2004 39 comp1 comp2 + - - + v ref gpio2/ irq gpio pins dead bat low bat gpio / interrupt logic c r2 r3 r1 v batt wm9711l i alarm voltage regulator avdd, dcvdd, ... figure 6 battery alarm example schematic the typical schematic for a dual threshold battery alarm is shown above. this alarm has two thresholds, ?dead battery? (comp1) and ?low battery? (comp2). r1, r2 and r3 set the threshold voltages. their values can be up to about 1m ? in order to keep the battery current [i alarm = v batt / (r1+r2+r3)] to a minimum (higher resistor values may affect the accuracy of the system as leakage currents into the input pins become significant). ? dead battery alarm: comp1 triggers when v batt < vref (r1+r2+r3) / (r2+r3) a dead battery alarm is the highest priority of interrupt in the system. it should immediately save all unsaved data and shut down the system. the gp15, gs15 and gw15 bits must be set to generate this interrupt. ? low battery alarm: comp2 triggers when v batt < vref (r1+r2+r3) / r3 a low battery alarm has a lower priority than a dead battery alarm. since the threshold voltage is higher than for a dead battery alarm, there is enough power left in the battery to give the user a warning and/or shut down ?gracefully?. when v batt gets close to the low battery threshold, spurious alarms are filtered out by the comp2 delay function. the purpose of the capacitor c is to remove from the comparator inputs any high frequency noise or glitches that may be present on the battery (for example, noise generated by a charge pump). it forms a low pass filter with r1, r2 and r3. ? low pass cutoff f c [hz] = 1/ (2 c (r1 || (r2+r3))) provided that the cutoff frequency is several orders of magnitude lower than the noise frequency f n , this simple circuit can achieve excellent noise rejection. ? noise rejection [db] = 20 log (f n / f c )
wm9711l production data w pd rev 4.1 april 2004 40 gpio and interrupt control the wm9711l has five gpio pins that operate as defined in the ac?97 revision 2.2 specification. each gpio pin can be set up as an input or as an output, and has corresponding bits in register 54h and in slot 12. the state of a gpio output is determined by sending data through slot 12 of outgoing frames (sdataout). data can be returned from a gpio input by reading the register bit, or examining slot 12 of incoming frames (sdatain). gpio inputs can be made sticky, and can be programmed to generate and interrupt, transmitted either through the ac-link or through a dedicated, level-mode interrupt pin (gpio2/irq, pin 45). gpio pins 2 to 5 are multi-purpose pins that can also be used for other (non-gpio) purposes, e.g. as a spdif output or to signal pen-down. this is controlled by register 56h. independently of the gpio pins, the wm9711l also has three virtual gpios. these are signals from inside the wm9711l, which are treated as if they were gpio input signals. from a software perspective, virtual gpios are the same as gpio pins, but they cannot be set up as outputs, and are not tied to an actual pin. this allows for simple, uniform processing of different types of signals that may generate interrupts (e.g. pen down, battery warnings, jack insertion, high-temperature warning, or gpio signals). figure 7 gpio logic
production data wm9711l w pd rev 4.1 april 2004 41 gpio bit slot1 2 bit type pin no. description 1 5 gpio pin 44 gpio1 2 6 gpio pin 45 gpio2 / irq enabled only when pin not used as irq 3 7 gpio pin 46 gpio3 4 8 gpio pin 47 gpio4 5 9 gpio pin 48 gpio5 / spdif_out enabled only when pin not used as spdif_out 6-10 n/a unused - gpio logic not implemented for these bits 11 15 virtual gpio - [thermal cutout] internal thermal cutout signal, indicates when internal temperature reaches approximately 150 c (see ?thermal sensor?) 12-13 n/a unused - gpio logic not implemented for these bits 14 18 virtual gpio - [comp2] internal comp2 output (low battery alarm) enabled only when comp2 is on 15 19 virtual gpio - [comp1] internal comp1 output (dead battery alarm) enabled only when comp1 is on table 27 gpio bits and pins
wm9711l production data w pd rev 4.1 april 2004 42 the properties of the gpios are controlled through registers 4ch to 52h, as shown below. register address bit label default description 4ch n gcn 1 gpio pin configuration 0: output 1: input gc11-15 are always ?1? unused bits gc6-gc10 are always ?0? gpio pin polarity / type 0: active low 1: active high [gin = pin level xnor gpn) 4eh n gpn 1 unused bits gp6-gp10, gp12 and gp13 are always ?1? 50h n gsn 0 gpio pin sticky 1: sticky 0: not sticky unused bits gs6-gs10, gs12 and gs13 are always ?0? 52h n gwn 0 gpio pin wake-up 1: wake up (generate interrupts from this pin) 0: no wake-up (no interrupts generated) unused bits gw6-gw10, gw12 and gw13 are always ?0? 54h n gin n/a gpio pin status read: returns status of each gpio pin write: sets output pin high or low. (writing ?0? clears sticky bit) unused bits gi6-gi10, gi12 and gi13 are always ?0? table 28 gpio control the following procedure is recommended for handling interrupts: when the controller receives an interrupt, check register 54h. for each gpio bit in descending order of priority, check if the bit is ?1?. if yes, execute corresponding interrupt routine, then write ?0? to corresponding bit in 54h. if no, continue to next lower priority gpio. after all gpios have been checked, check if interrupt still present or no. if yes, repeat procedure. if no, then jump back to process that ran before the interrupt. if the system cpu cannot execute such an interrupt routine, it may be preferable to switch internal signals (such as pendown) directly onto the gpio pins. however, in this case the interrupt signals cannot be made sticky, and more gpio pins are tied up both on the wm9711l and on the cpu. register address bit label default description 2 ge2 1 gpio2 / irq output select 0: pin 45 disconnected from gpio logic set 4ch, bit 2 to ?0? to output irq signal 1: pin 45 connected to gpio logic (irq disabled) 56h gpio pins function select 5 ge5 1 gpio5 / spdif output select 0: pin 48 = spdif (disconnected from gpio logic) set 4ch, bit 5 to ?0? to output spdif signal 1: pin 48 connected to gpio logic (spdif disabled) table 29 using gpio pins for non-gpio functions
production data wm9711l w pd rev 4.1 april 2004 43 register address bit label default description 0 irq inv 0 inverts the irq signal (pin 45) 0: irq signal not inverted 1: irq signal inverted 58h additional functional control 1 wakeen 0 e nables gpio wake-up 0: disabled 1: enabled table 30 additional functionality for gpio pins power management the wm9711l includes the standard power down control register defined by the ac?97 specification (register 26h). additionally, it also allows more specific control over the individual blocks of the device through register 24h. each particular circuit block is on when both the relevant bit in register 26h and the relevant bit in register 24h are set to ?0?. default register address bit label normal pin 47 ?hi? during reset description 14 pr6 0 (on) 1 (off) disables hpoutl, hpoutr and out3 buffer 13 pr5 0 (on) 1 (off) disables internal clock 12 pr4 0 (on) 1 (off) disables ac-link interface (external clock off) 11 pr3 0 (on) 1 (off) disables vref, analogue mixers and outputs 10 pr2 0 (on) 1 (off) disables analogue mixers, lout2, rout2 (but not vref) 9 pr1 0 (on) 1 (off) disables stereo dac 8 pr0 0 (on) 1 (off) disables audio adcs and input mux 3 ref 1 0 read-only bit, indicates vref is ready (inverse of pr2) 2 anl 1 0 read-only bit, indicates analogue mixers are ready (inverse of pr3) 1 dac 1 0 read-only bit, indicates audio dacs are ready (inverse of pr1) 26h powerdown/ status register 0 adc 1 0 read-only bit, indicates audio adcs are ready (inverse of pr0) table 31 powerdown and status register (conforms to ac?97 rev 2.2) as can be seen from the table above, most blocks are ?on? by default. however, if pin 47 (gpio4/ada/mask) is held high during reset, the wm9711l starts up with all blocks powered down by default, saving power. this is achieved by connecting a pull-up resistor (e.g. 100k ? ) from pin 47 to dbvdd. note that the state of pin 47 during reset only affects register 26h.
wm9711l production data w pd rev 4.1 april 2004 44 table 32 extended power down register (additional to ac?97 rev 2.2) note: *when disabling a pga, always ensure that it is muted first. additional power management: ? auxdac: see ?auxiliary dac? section. auxdac is off by default. sleep mode whenever the pr4 bit (reg. 26h) is set, the ac-link interface is disabled, and the wm9711l is in sleep mode. there is in fact a very large number of different sleep modes, depending on the other control bits. for example, the low-power standby mode described below is a sleep mode. it is desirable to use sleep modes whenever possible, as this will save power. the following functions do not require a clock and can therefore operate in sleep mode: ? analogue-to-analogue audio (dacs and adcs unused), e.g. phone call mode ? gpio and interrupts ? battery alarm / analogue comparators the wm9711l can awake from sleep mode as a result of ? a warm reset on the ac-link (according to the ac?97 specification) ? a signal on a gpio pin (if the pin is configured as an input, with wake-up enabled ? see ?gpio and interrupt control? section) ? a virtual gpio event such as battery alarm, thermal sensor, etc. (see ?gpio and interrupt control? section) register address bit label default description 15 pd15 0 (on) disables crystal oscillator 14 pd14 0 (on) disables left audio dac 13 pd13 0 (on) disables right audio dac 12 pd12 0 (on) disables left audio adc 11 pd11 0 (on) disables right audio adc 10 pd10 0 (on) disables micbias 9 pd9 0 (on) disables left headphone mixer 8 pd8 0 (on) disables right headphone mixer 7 pd7 0 (on) disables speaker mixer 6 pd6 0 (on) disables mono_out buffer (pin 33) and phone mixer 5 pd5 0 (on) disables out3 buffer (pin 37) 4 pd4 0 (on) disables headphone buffers (hpoutl/r) 3 pd3 0 (on) disables speaker outputs (lout2, rout2) 2 pd2 0 (on) disables line input pga (left and right) * 1 pd1 0 (on) disables phone input pga * 24h additional power down control 0 pd0 0 (on) disables mic input pga (left and right) * note: when analogue inputs or outputs are disabled, they are internally connected to vref through a large resistor (vref=avdd/2 except in off mode, when vref itself is disabled). this maintains the potential at that node and helps to eliminate pops when the pins are re-enabled.
production data wm9711l w pd rev 4.1 april 2004 45 low power standby mode if all the bits in registers 26h and 24h are set, then the wm9711l is in low-power standby mode and consumes very little current. a 1m ? resistor string remains connected across avdd to generate vref. this is necessary if the on-chip analogue comparators are used (see ?battery alarm? section), and helps shorten the delay between wake-up and playback readiness. if vref is not required, the 1m ? resistor string can be disabled by setting the svd bit, reducing current consumption further. register address bit label default description 58h 10 svd 0 vref disable 0: vref enabled using 1m ? string (low-power standby mode) 1 : vref disabled, 1m ? string disconnected (off mode) table 33 disabling vref (for lowest possible power consumption) saving power at low supply voltages the analogue supplies to the wm9711l can run from 1.8v to 3.6v. by default, all analogue circuitry on the ic is optimized to run at 3.3v. this set-up is also good for all other supply voltages down to 1.8v. however, at lower voltages, it is possible to save power by reducing the internal bias currents used in the analogue circuitry. this is controlled as shown below. register address bit label default description 5ch 6:5 v[1:0] 11 analogue bias optimization 11 : lowest bias current, optimized for 1.8v 10 : low bias current, optimized for 2.5v 01, 00 : default bias current, optimized for 3.3v table 34 analogue bias selection
wm9711l production data w pd rev 4.1 april 2004 46 ac97 data and control interface interface protocol the wm9711lhas a single ac?97 interface for both data transfer and control. the ac-link uses 5 wires: ? sdatain (pin 8) carries data from the wm9711l to the controller ? sdataout (pin 5) carries data from the controller to the wm9711l ? bitclk (pin 6) is a clock, normally generated by the wm9711l crystal oscillator and supplied to the controller. however, bitclk can also be passed to the wm9711l from an off-chip generator. ? sync is a synchronization signal generated by the controller and passed to the wm9711l ? resetb resets the wm9711l to its default state controller e.g. cpu wm9711l resetb sdatain sdataout bitclk sync 24.576mhz xtal ac-link analogue inputs / outputs figure 8 ac-link interface (typical case with bitclk generated by the ac97 codec) the sdatain and sdataout signals each carry 13 time-division multiplexed dat a streams (slots 0 to 12). a complete sequence of slots 0 to 12 is referred to as an ac-link frame, and contains a total of 256 bits. the frame rate is 48khz. this makes it possible to simultaneously transmit and receive multiple data streams (e.g. audio in, audio out, auxdac, gpio, control) at sample rates up to 48khz. detailed information can be found in the ac?97 (revision 2.2) specification, which can be obtained at www.intel.com/labs/media/audio/ note: sdataout and sync must be held low for when resetb is applied. these signals must be held low for the entire duration of the resetb pulse and especially during the low-to-high transition of resetb. if either is set high during reset the ac'97 device may enter test modes. information relating to this operation is available in the ac'97 specification or in wolfson applications note wan- 0104 available at www.wolfsonmirco.com.
production data wm9711l w pd rev 4.1 april 2004 47 interface timing test characteristics: dbvdd = 3.3v, dcvdd = 3.3v, dgnd1 = dgnd2 = 0v, t a = -25 c to +85 c, unless otherwise stated. clock specifications bitclk sync t clk_high t clk_low t clk_period t sync_high t sync_low t sync_period figure 9 clock specifications (50pf external load) parameter symbol min typ max unit bitclk frequency 12.288 mhz bitclk period t clk_period 81.4 ns bitclk output jitter 750 ps bitclk high pulse width (note 1) t clk_high 36 40.7 45 ns bitclk low pulse width (note 1) t clk_low 36 40.7 45 ns sync frequency 48 khz sync period t sync_period 20.8 s sync high pulse width t sync_high 1.3 s sync low pulse width t sync_low 19.5 s note: 1. worst case duty cycle restricted to 45/55 data setup and hold figure 10 data setup and hold (50pf external load) note: 1. setup and hold times for sdatain are with respect to the ac?97 controller, not the wm9711l.
wm9711l production data w pd rev 4.1 april 2004 48 parameter symbol min typ max unit setup to falling edge of bitclk t setup 10 ns hold from falling edge of bitclk t hold 10 ns output valid delay from rising edge of bitclk t co 15 ns signal rise and fall times bitclk sync sdatain sdataout t rise clk t fall clk t rise sync t fall sync t rise din t fall din t rise dout t fall dout figure 11 signal rise and fall times (50pf external load) parameter symbol min typ max unit bitclk rise time trise clk 2 6 ns bitclk fall time tfall clk 2 6 ns sync rise time trise sync 2 6 ns sync fall time tfall sync 2 6 ns sdatain rise time trise din 2 6 ns sdatain fall time tfall din 2 6 ns sdataout rise time trise dout 2 6 ns sdataout fall time tfall dout 2 6 ns ac-link powerdown sync bitclk sdataout write to 0x20 data pr4 don't care sdatain slot 1 slot 2 t s2_pdown figure 12 ac-link powerdown timing
production data wm9711l w pd rev 4.1 april 2004 49 ac-link powerdown occurs when pr4 (register 26h, bit 12) is set (see ?power management? section). parameter symbol min typ max unit end of slot 2 to bitclk and sdatain low t s2_pdown 1.0 s cold reset (asynchronous, resets register settings) resetb bitclk t rst_low t rst2clk figure 13 cold reset timing note: for correct operation sdataout and sync must be held low for entire resetb active low period otherwise the device may enter test mode. see ac'97 specification or wolfson applications note wan104 for more details. parameter symbol min typ max unit resetb active low pulse width t rst_low 1.0 s resetb inactive to bitclk startup delay t rst2clk 162.8 ns warm reset (asynchronous, preserves register settings) figure 14 warm reset timing parameter symbol min typ max unit sync active high pulse width t sync_high 1.3 s sync inactive to bitclk startup delay t rst2clk 162.4 ns
wm9711l production data w pd rev 4.1 april 2004 50 register map note: highlighted bits differ from the ac?97 specification (newly added for non-ac?97 function, or same bit used in a different way, or for another function) reg name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 default 00h reset 0 se4 se3 se2 se1 se0 id9 id8 id7 id6 id5 id4 id3 id2 id1 id0 6174h 02h lout2/rout2 volume mu 0 zc inv 8000h 04h headphone volume mu 0 zc 0 8000h 06h monoout volume mu 0 0 0 0 0 0 0 zc 0 0 8000h 08h dac tone control bb 0 0 bc 0 dat 0 tc 0f0fh 0ah pcbeep input b2h b2s b2p 0 0 0 0 aaa0h 0ch phone volume p2h p2s 0 0 0 0 0 0 0 0 0 c008h 0eh mic volume 0 m12p m22p 20db 6808h 10h linein volume l2h l2s l2p 0 0 0 e808h 12h auxdac volume / routing a2h a2s a2p 0 0 0 axe aaa0h 14h sidetone volume stm 0 000000ad00h 16h out3 volume mu 0 0 0 0 src zc 0 8000h 18h dac volume d2h d2s d2p 0 0 0 e808h 1ah record select 0 boost r2p bst 0 0 0 0 0 3000h 1ch record gain rmu grl zc grr 8000h 20h general purpose 0 0 3de 0 0 0 0 0 lb 0 0 0 0 0 0 0 0000h 22h dac 3d control 0 0 0 0 0 0 0 0 0 0 3dlc 3duc 0000h 24h powerdown pd15 pd14 pd13 pd12 pd11 pd10 pd9 pd8 pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 0000h 26h powerdown ctrl/stat eapd pr6 pr5 pr4 pr3 pr2 pr1 pr0 0 0 0 0 ref anl dac adc 000fh fff0h 28h extended audio id id1 id0 0 0 rev1 rev0 amap ldac sdac cdac 0 0 vrm spdif dra vra 0405h 2ah ext?d audio stst/ctrl 0 0 0 0 0 spcv 0 0 0 0 0 sen 0 vra 0410h 2ch audio dacs sample rate bb80h 2eh auxdac sample rate bb80h 32h audio adcs sample rate bb80h 3ah spdif control v drs l pre copy aud ib pro 2000h 4ch gpio pin configuration 1 1 1 1 1 0 0 0 0 0 gc5 gc4 gc3 gc2 gc1 0 f83eh 4eh gpio pin polarity / type c1p c2p 1 1 tp 1 1 1 1 1 gp5 gp4 gp3 gp2 gp1 1 ffffh 50h gpio pin sticky c1s c2s 0 0 ts 0 0 0 0 0 gs5 gs4 gs3 gs2 gs1 0 0000h 52h gpio pin wake-up c1w c2w 0 0 tw 0 0 0 0 0 gw5 gw4 gw3 gw2 gw1 0 0000h 54h gpio pin status c1i c2i 0 0 ti 0 0 0 0 0 gi5 gi4 gi3 gi2 gi1 0 gpio pins 56h gpio pin assignment com1 com2 1 1 tco 0 0 0 0 0 ge5 1 1 ge2 1 0 f83eh 58h gpio pin sharing / additional functions jien jif svd 0 0 0 0 0 0 wake en irq inv 0008h 5ah vendor reserved 5ch add. function control amute c1 ref c2 ref ds am en ad co hpf ent 0000h 5eh vendor reserved 60h alc control b032h 62h alc / noise gate control alc zc ng at 0 ngg 3e00h 64h auxdac input control xsle 0000h 66h- 7ah vendor reserved n/a 7ch vendor id1 574dh 7eh vendor id2 4c12h reserved for test reserved. do not write to these registers out3 volume lout2 volume rout2 volume stvol lineinlvol lineinrvol a2hvol a2svol comp2del reserved for test b2svol spsr cc (category code) adcsr (audio adcs sample rate) (extended) recvoll ascii character ?l? number ?12? ngth (threshold) auxdac val ascii character ?w? ascii character ?m? alcsel maxgain zc timeout auxdacslt alcl (target level) hld (hold time) dcy (decay time) atk (attack time) c2src die revision 3ddepth dacsr (audio dacs sample rate) auxdacsr (auxiliary dac sample rate) spsa v (bias) ass c2src hpoutr volume hpoutl volume recsl recsr left dac volume right dac volume r2p alcm lmicvol (left only) b2hvol alcvol default for reg. 26h - pin 47 "high" during reset (recommended for lowest power) out3src a2pvol default for reg. 26h - pin 47 "low" (extended) recvolr monoout volume bass trbl micvol (mono /right) ms b2pvol phonein volume table 35 wm9711l register map
production data wm9711l w pd rev 4.1 april 2004 51 register bits by address register 00h is a read-only register. writing any value to this register resets all registers to their default, but does not change the contents of reg. 00h. reading the register reveals information about the codec to the driver, as required by the ac?97 specification, revision 2.2 reg addr bit label default description refer to 14:10 se [4:0] 11000 indicates a codec from wolfson microelectronics 9:6 id9:6 0101 indicates 18 bits resolution for adcs and dacs 5 id5 1 indicates that the wm9711l supports bass boost 4 id4 1 indicates that the wm9711l has a headphone output 3 id3 0 indicates that the wm9711l does not support simulated stereo 2 id2 1 indicates that the wm9711l supports bass and treble control 1 id1 0 indicates that the wm9711l does not support modem functions 00h 0 id0 0 indicates that the wm9711l does not have a dedicated microphone adc intel?s ac?97 component specification, revision 2.2, page 50 register 02h controls the output pins lout2 and rout2. reg addr bit label default description refer to 15 mu 1 (mute) mutes lout2 and rout2. 13:8 lout2 vol 000000 (0db) lout2 volume 7 zc 0 (off) enables zero-cross detector 6 inv 0 (not inverted) inverts lout2 (for btl speaker operation) 02h 5:0 rout2 vol 000000 (0db) rout2 volume analogue audio outputs register 04h controls the headphone output pins, hpoutl and hpoutr. reg addr bit label default description refer to 15 mu 1 (mute) mutes hpoutl and hpoutr. 13:8 hpoutl vol 000000 (0db) hpoutl volume 7 zc 0 (off) enables zero-cross detector 04h 5:0 hpoutr vol 000000 (0db) hpoutr volume analogue audio outputs register 06h controls the analogue output pin monoout. reg addr bit label default description refer to 15 mu 1 (mute) mutes monoout. 7 zc 0 (off) enables zero-cross detector 06h 5:0 monoout vol 000000 (0db) monoout volume analogue audio outputs
wm9711l production data w pd rev 4.1 april 2004 52 register 08h controls the bass and treble response of the left and right audio dac (but not auxdac). reg addr bit label default description refer to 15 bb 0 (linear) selects linear bass control or adaptive bass boost 12 bc 0 (low) selects bass cut-off frequency 11:8 bass 1111 (off) controls bass intensity 6 dat 0 (off) enables 6db pre-dac attenuation 4 tc 0 (high) selects treble cut-off frequency 08h 3:0 trbl 1111 (off) controls treble intensity audio dacs, tone control / bass boost register 0ah controls the analogue input pin pcbeep. reg addr bit label default description refer to 15 b2h 1 (mute) mutes pcbeep to headphone mixer path 14:12 b2hvol 010 (0db) controls gain of pc beep to headphone mixer path 11 b2s 1 (mute) mutes pcbeep to s peaker mixer path 10:8 b2svol 010 (0db) controls gain of pc beep to s peaker mixer path 7 b2p 1 (mute) mutes pcbeep to phone mixer path 0ah 6:4 b2pvol 010 (0db) controls gain of pc beep to phone mixer path analogue inputs, pcbeep input register 0ch controls the analogue input pin phone. reg addr bit label default description refer to 15 p2h 1 (mute) mutes phone to headphone mixer path 14 p2s 1 (mute) mutes phone to speaker mixer path 0ch 4:0 phonevol 01000 (0db) controls phone input gain to all mixers (but not to adc) analogue inputs, phone input register 0eh controls the analogue input pins mic1 and mic2. reg addr bit label default description refer to 14 m12p 1 (mute) mutes mic1 to phone mixer path 13 m22p 1 (mute) mutes mic2 to phone mixer path 12:8 lmicvol 01000 (0db) controls volume of mic1 (left), in stereo mode only 7 20db 0 (off) enables 20db gain boost 6:5 ms 00 (mic1 only) selects microphone mode. 00=mic1 only, 01=differential, 10=mic2 only, 11=stereo 0eh 4:0 micvol 01000 (0db) controls mic volume (except mic1 in stereo mode) analogue inputs, microphone input register 10h controls the analogue input pins lineinl and lineinr. reg addr bit label default description refer to 15 l2h 1 (mute) mutes linein to headphone mixer path 14 l2s 1 (mute) mutes linein to speaker mixer path 13 l2p 1 (mute) mutes linein to phone mixer path 12:8 lineinlvol 01000 (0db) controls lineinl input gain to all mixers (but not to adc) 10h 4:0 lineinrvol 01000 (0db) controls lineinr input gain to all mixers (but not to adc) analogue inputs, line input
production data wm9711l w pd rev 4.1 april 2004 53 register 12h controls the output signal of the auxiliary dac. reg addr bit label default description refer to 15 a2h 1 (mute) mutes auxdac to headphone mixer path 14:12 a2hvol 010 (0db) controls gain of auxdac to headphone mixer path 11 a2s 1 (mute) mutes auxdac to speaker mixer path 10:8 a2svol 010 (0db) controls gain of auxdac to speaker mixer path 7 a2p 1 (mute) mutes auxdac to phone mixer path 6:4 a2pvol 010 (0db) controls gain of auxdac to phone mixer path 12h 0 axe 0 (0ff) enables auxdac auxiliary dac register 14h controls the side tone paths. reg addr bit label default description refer to 15 stm 1 (mute) mutes microphone to headphone mixer path 14:12 stvol 010 (0db) controls gain of microphone to headphone mixer path 11:10 alcm 11 (mute both) selects alc to headphone mixer path. 00=stereo, 01=right only, 10=left only, 11=mute both left and right 14h 9:7 alcvol 010 (0db) controls gain of alc to headphone mixer path audio mixers, side tone control register 16h controls the analogue output pin out3, and also contains one control bit that affects lout2 and rout2. reg addr bit label default description refer to 15 mu 1 (mute) mutes out3. 10:9 out3src 00 (-hpoutl) selects source of out3 signal. 00=-hpoutl, 01=vref, 10=hpoutl+hpoutr, 11=-monoout 8 src 0 (spkr mix) selects source of lout2 and rout2 signals. 0=from speaker mixer, 1=from headphone mixer 7 zc 0 (disabled) zero-cross enable 16h 5:0 out3vol 000000 (0db) out3 volume analogue audio outputs register 18h controls the audio dacs (but not auxdac). reg addr bit label default description refer to 15 d2h 1 (mute) mutes dac to headphone mixer path 14 d2s 1 (mute) mutes dac to speaker mixer path 13 d2p 1 (mute) mutes dac to phone mixer path 12:8 ldacvol 01000 (0db) controls left dac input gain to all mixers 18h 4:0 rdacvol 01000 (0db) controls right dac input gain to all mixers audio dacs register 1ah controls the record selector and the adc to phone mixer path. reg addr bit label default description refer to 14 boost 0 (off) enables 20db gain boost for recording 13:12 r2p 11 (mute) controls adc to phone mixer path. 00=stereo, 01=left adc only, 10=right adc only, 11=mute left and right 11 r2pbst 0 (off) enables 20db gain boost for adc to phone mixer path 10:8 recsl 000 (mic) selects left adc signal source 1ah 2:0 recsr 000 (mic) selects right adc signal source audio adc, record selector
wm9711l production data w pd rev 4.1 april 2004 54 register 1ch controls the recording gain. reg addr bit label default description refer to 15 rmu 1 (mute) mutes audio adc input 14 grl 0 (standard) selects gain range for pga of left adc. 0=0...+22.5db in 1.5db steps, 1=-17.25...+30db in 0.75db steps 13:8 recvoll 000000 (0db) controls left adc recording volume 7 zc 0 (off) enables zero-cross detector 6 grr 0 (standard) selects gain range for pga of left adc. 0=0...+22.5db in 1.5db steps, 1=-17.25...+30db in 0.75db steps 1ch 5:0 recvolr 000000 (0db) controls right adc recording volume audio adc, record gain register 20h is a ?general purpose? register as defined by the ac?97 specification. only two bits are implemented in the wm9711l. reg addr bit label default description refer to 13 3de 0 (off) enables 3d enhancement audio dacs, 3d stereo enhancement 20h 7 lb 0 (off) enables loopback (i.e. feed adc output data directly into dac) intel?s ac?97 component specification, revision 2.2, page 55 register 22h controls 3d stereo enhancement for the audio dacs. reg addr bit label default description refer to 5 3dlc 0 (low) selects lower cut-off frequency 4 3duc 0 (high) selects upper cut-off frequency 22h 3:0 3ddepth 0000 (0%) controls depth of 3d effect audio dacs, 3d stereo enhancement register 24h is for power management additional to the ac?97 specification. note that the actual state of each circuit block depends on both register 24h and register 26h. reg addr bit label default description refer to 15 pd15 0 * disables crystal oscillator 14 pd14 0 * disables left audio dac 13 pd13 0 * disables right audio dac 12 pd12 0 * disables left audio adc 11 pd11 0 * disables right audio adc 10 pd10 0 * disables micbias 9 pd9 0 * disables left headphone mixer 8 pd8 0 * disables right headphone mixer 7 pd7 0 * disables speaker mixer 6 pd6 0 * disables mono_out buffer (pin 33) and phone mixer 5 pd5 0 * disables out3 buffer (pin 37) 4 pd4 0 * disables headphone buffers (hpoutl/r) 3 pd3 0 * disables speaker outputs (lout2, rout2) 2 pd2 0 * disables line input pga (left and right) 1 pd1 0 * disables phone input pga 24h 0 pd0 0 * disables mic input pga (left and right) power management * ?0? corresponds to ?on?, if and only if the corresponding bit in register 26h is also 0.
production data wm9711l w pd rev 4.1 april 2004 55 register 26h is for power management according to the ac?97 specification. note that the actual state of many circuit blocks depends on both register 24h and register 26h. reg addr bit label default description refer to 14 pr6 disables hpoutl, hpoutr and out3 buffer 13 pr5 disables internal clock 12 pr4 disables ac-link interface (external clock off) 11 pr3 disables vref, analogue mixers and outputs 10 pr2 disables analogue mixers, lout2, rout2 (but not vref) 9 pr1 disables stereo dac and auxdac 8 pr0 see note disables audio adcs and input mux 3 ref inverse of pr2 read-only bit, indicates vref is ready 2 anl inverse of pr3 read-only bit, indicates analogue mixers are ready 1 dac inverse of pr1 read-only bit, indicates audio dacs are ready 26h 0 adc inverse of pr0 read-only bit, indicates audio adcs are ready power management note: pr6 to pr0 default to 1 if pin 47 is held high during reset, otherwise they default to 0. register 28h is a read-only register that indicates to the driver which advanced ac?97 features the wm9711l supports. reg addr bit label default description refer to 15:14 id 00 indicates that the wm9711l is configured as the primary codec in the system. 11:10 rev 01 indicates that the wm9711l conforms to ac?97 rev2.2 9 amap 0 indicates that the wm9711l does not support slot mapping 8 ldac 0 indicates that the wm9711l does not have an lfe dac 7 sdac 0 indicates that the wm9711l does not have surround dacs 6 cdac 0 indicates that the wm9711l does not have a centre dac 3 vrm 0 indicates that the wm9711l does not have a dedicated, variable rate microphone adc 2 spdif 1 indicates that the wm9711l supports spdif output 1 dra 0 indicates that the wm9711l does not support double rate audio 28h 0 vra 1 indicates that the wm9711l supports variable rate audio intel?s ac?97 component specification, revision 2.2, page 59 register 2ah controls the spdif output and variable rate audio. reg addr bit label default description refer to 10 spcv 1 (valid) spdif validity bit (read-only) 5:4 spsa 01 (slots 6, 9) controls spdif slot assignment. 00=slots 3 and 4, 01=6/9, 10=7/8, 11=10/11 2 sen 0 (off) enables spdif output enable 2ah 0 vra 0 (off) enables variable rate audio digital audio (spdif) output registers 2ch, 2eh 32h and control the sample rates for the stereo dac, auxiliary dac and audio adc, respectively. reg addr bit label default description refer to 2ch all dacsr bb80h controls stereo dac sample rate 2eh all auxdacsr bb80h controls auxiliary dac sample rate 32h all adcsr bb80h controls audio adc sample rate variable rate audio / sample rate conversion note: the vra bit in register 2ah must be set first to obtain sample rates other than 48khz
wm9711l production data w pd rev 4.1 april 2004 56 register 3ah controls the spdif output. reg addr bit label default description refer to 15 v 0 validity bit; ?0? indicates frame valid, ?1? indicates frame not valid 14 drs 0 indicates that the wm9711l does not support double rate spdif output (read-only) 13:12 spsr 10 indicates that the wm 9711l only supports 48khz sampling on the spdif output (read-only) 11 l 0 generation level; programmed as required by user 10:4 cc 0000000 category code; programmed as required by user 3 pre 0 pre-emphasis; ?0? indicates no pre-emphasis, ?1? indicates 50/15us pre-emphasis 2 copy 0 copyright; ?0? indicates copyright is not asserted, ?1? indicates copyright 1 audib 0 non-audio; ?0? indicates data is pcm, ?1? indicates non- pcm format (e.g. dd or dts) 3ah 0 pro 0 professional; ?0? indicates consumer, ?1? indicates professional digital audio (spdif) output register 4ch to 54h control the gpio pins and virtual gpio signals. reg addr bit label default description refer to 4ch all 1 (all inputs) except unused bits controls gpio configuration as inputs or as outputs (note: virtual gpios can only be inputs) 4eh all 1 controls gpio polarity (actual polarity depends on register 4ch and register 4eh) 50h all 0 (not sticky) makes gpio signals sticky 52h all 0 (off) enables wake-up for each gpio signal 54h = status of gpio inputs gpio pin status (read from inputs, write ?0? to clear sticky bits) 15 controls comparator 1 signal (virtual gpio) 14 controls comparator 2 signal (virtual gpio) 13-12 unused 11 controls thermal sensor signal (virtual gpio) 10-6 unused 5 controls gpio5 (pin 48) 4 controls gpio4 (pin 47) 3 controls gpio3 (pin 46) 2 controls gpio2 (pin 45) 1 please refer to the register map controls gpio1 (pin 44) gpio and interrupt control register 56h controls the use of gpio pins for non-gpio functions. reg addr bit label default description refer to 5 ge5 1 (gpio) selects between gpio5 and spdif_out function for pin 48 56h 2 ge2 1 (gpio) selects between gpio2 and irq function for pin 45 gpio and interrupt control
production data wm9711l w pd rev 4.1 april 2004 57 register 58h controls several additional functions. reg addr bit label default description refer to 15:13 comp2del 000 (no delay) selects comparator 2 delay battery alarm 12 jien 0 enables jack insert detection 11 frc 0 forces jack insert detection analogue audio outputs, jack insertion and auto-switching 10 svd 0 (enabled) disables vref for lowest possible power consumption power management 3:2 die rev indicates device revision. 10=rev.c n/a 1 wakeen 0 (no wake-up) e nables gpio wake-up 58h 0 irq inv 0 (not inverted) inverts the irq signal (pin 45) gpio and interrupt control register 5ch controls several additional functions. reg addr bit label default description refer to 15 amute 0 read-only bit to indicate dac auto-muting audio dacs, stereo dacs 14 c1ref 0 (avdd/2) selects comparator 1 reference voltage 13:12 c1src 00 (off) selects comparator 1 signal source 11 c2ref 0 (avdd/2) selects comparator 1 reference voltage 10:9 c2src 00 (off) selects comparator 1 signal source battery alarm 8 ds 0 selects differential microphone input pins. 0=mic1 and mic2, 1=linel and liner analogue inputs, microphone input 7 amen 0 (off) enables dac auto-mute 6:5 vbias 00 selects analogue bias for lowest power, depending on avdd supply. 0x=3.3v, 10=2.5v, 11=1.8v power management 4 adco 0 selects source of spdif data. 0=from sdataout, 1= from audio adc digital audio (spdif) output 3 hpf 0 disables adc high-pass filter audio adc 2 ent 0 enables thermal sensor analogue audio outputs, thermal sensor 5ch 1:0 ass 00 selects time slots for stereo adc data. 00=slots 3 and 4, 01=7/8, 10=6/9, 11=10/11 audio adc, adc slot mapping registers 60h and 62h control the alc and noise gate functions. reg addr bit label default description refer to 15:12 alcl 1011 (-12db) controls alc threshold 11:8 hld 0000 (0 ms) controls alc hold time 7:4 dcy 0011 (192 ms) controls alc decay time 60h 3:0 atk 0010 (24 ms) controls alc attack time 15:14 alcsel 00 (off) controls which channel alc operates on. 00=none, 01=right only, 10=left only, 11=both 13:11 maxgain 111 (+30db) controls upper gain limit for alc 10:9 zc timeout 11 (slowest) controls time-out for zero-cross detection 8 alczc 0 (off) enables zero-cross detection for alc 7 ngat 0 (off) enables noise gate function 5 ngg 0 (hold gain) selects noise gate type. 0=hold gain, 1=mute 62h 4:0 ngth 00000 (-76.5db) controls noise gate threshold audio adc, automatic level control
wm9711l production data w pd rev 4.1 april 2004 58 register 64h controls the input signal of the auxiliary dac. reg addr bit label default description refer to 15 xsle 0 selects input for auxdac. 0=from auxdacval (for dc signals), 1=from ac-link slot (for ac signals) 14:12 auxdacslt 000 (slot 5) selects input slot for auxdac (with xsle=1) 64h 11:0 auxdacval 000000000 auxdac digital input for auxdac (with xsle=0). 000h= minimum, fffh=full-scale auxiliary dac register 7ch and 7eh are read-only registers that indicate the identity of the device to the driver. reg addr bit label default description refer to 15:8 f7:0 57h ascii character ?w? for wolfson 7ch 7:0 s7:0 4dh ascii character ?m? 15:8 t7:0 4ch ascii character ?l? 7eh 7:0 rev7:0 12h number 12 intel?s ac?97 component specification, revision 2.2, page 50
production data wm9711l w pd rev 4.1 april 2004 59 applications information recommended external components figure 15 external components diagram
wm9711l production data w pd rev 4.1 april 2004 60 recommended external component values component reference suggested value description c1 - c6 100nf de-coupling for dbvdd,dcvdd,tpvdd,avdd, spkvdd,hpvdd c7 - c8 10uf reservoir capacitor for dvdd, avdd. should the supplies use separate sources then additional capacitors will be required of each additional source. c9 100nf de-coupling for cap2. c10 10uf reservoir capacitor for cap2 c11 100nf de-coupling for vref c12 10uf reservoir capacitor for vref c13 100nf de-coupling for micbias - not required if micbias output is not used c14 10uf reservoir capacitor for micbias - not required if micbias output is not used c27 and c28 22pf required when used with a parallel resonant crystal. c15 - c20 1uf ac coupling capacitors c21 - c23 2.2uf output ac coupling capacitors to remove vref dc level from outputs c24 - c26 220 f output ac coupling capacitors to remove vref dc level from outputs. r1 100k ? pull-up resistor, ensures that all circuit blocks are off by default r2 100k ? pull down resistor, ensures that all circuit blocks are on by default xt 24.576mhz ac'97 master clock frequency. a bias resistor is not required but if connected will not affect operation if the value is large (above 1m ? ) table 36 external components descriptions note: 1. for capacitors c7, c8, c10, c12 and c14 it is recommended that very low esr components are used. line output the headphone outputs, hpoutl and hpoutr, can be used as stereo line outputs. the speaker outputs, lout2 and rout2, can also be used as line outputs, if rout2 is not inverted for btl operation (inv = 0). recommended external components are shown below. hpgnd hpgnd line-out socket (left) c1 1uf r1 100 ohm hpoutl / lout2 hpoutr / rout2 wm9711l r2 100 ohm line-out socket (right) c2 1uf figure 16 recommended circuit for line output the dc blocking capacitors and the load resistance together determine the lower cut-off frequency, fc. assuming a 10 k ? load and c1, c2 = 10 f: fc = 1 / 2 (r l +r 1 ) c 1 = 1 / (2 x 10.1k ? x 1 f) = 16 hz increasing the capacitance lowers fc, improving the bass response. smaller values of c1 and c2 will diminish the bass response. the function of r1 and r2 is to protect the line outputs from damage when used improperly.
production data wm9711l w pd rev 4.1 april 2004 61 ac-coupled headphone output the circuit diagram below shows how to connect a stereo headphone to the wm9711l. c2 220uf hpoutl hpoutr hpgnd = 0v c1 220uf wm9711l figure 17 simple headphone output circuit diagram the dc blocking capacitors c1 and c2 together with the load resistance determine the lower cut-off frequency, fc. increasing the capacitance lowers fc, improving the bass response. smaller capacitance values will diminish the bass response. for example, with a 16 ? load and c1 = 220 f: fc = 1 / 2 r l c 1 = 1 / (2 x 16 ? x 220 f) = 45 hz dc coupled (capless) headphone output in the interest of saving board space and cost, it may be desirable to eliminate the 220 f dc blocking capacitors. this can be achieved by using out3 as a headphone pseudo-ground, as shown below. wm9711l hpoutl hpoutr out3 = avdd/2 figure 18 capless headphone output circuit diagram (out3src = 10) as the out3 pin produces a dc voltage of avdd/2, there is no dc offset between hpoutl/hpoutr and out3, and therefore no dc blocking capacitors are required. however, this configuration has some drawbacks: ? the power consumption of the wm9711l is increased, due to the additional power consumed in the out3 output buffer. ? if the dc coupled output is connected to the line-in of a grounded piece of equipment, then out3 becomes short-circuited. although the built-in short circuit protection will prevent any damage to the wm9711l, the audio signal will not be transmitted properly. ? out3 cannot be used for another purpose
wm9711l production data w pd rev 4.1 april 2004 62 btl speaker output lout2 and rout2 can differentially drive a mono 8 ? speaker as shown below. lout2 rout2 wm9711l inv = 1 stereo: v spkr = l-(-r) = l+r mono: v spkr = m-(-m) = 2m rout2vol lout2vol -1 figure 19 speaker output connection (inv = 1) the right channel is inverted by setting the inv bit, so that the signal across the loudspeaker is the sum of left and right channels. combined headset / btl ear speaker in smartphone applications with a loudspeaker and separate ear speaker (receiver), a btl ear speaker can be connected at the out3 pin, as shown below. hpoutl hpoutr hpgnd = 0v wm9711l out3 btl ear speaker figure 20 combined headset / btl ear speaker (out3src = 00) the ear speaker and the headset play the same signal. whenever the headset is plugged in, the headphone outputs are enabled and out3 disabled. when the headset is not plugged in, out3 is enabled (see ?jack insertion and auto-switching?). combined headset / single-ended ear speaker instead of a btl ear speaker, a single-ended ear speaker can also be used, as shown below. hpoutl hpoutr hpgnd = 0v wm9711l out3 ear speaker (single-ended) figure 21 combined headset / single-ended ear speaker (out3src = 01)
production data wm9711l w pd rev 4.1 april 2004 63 jack insert detection the circuit diagram below shows how to detect when a headphone or headset has been plugged into the headphone socket. it generates an interrupt, instructing the controller to enable hpoutl and hpoutr and disable out3. lr switch closes on insertion + - + - hpoutl hpoutr gpio interrupt logic figure 22 jack insert detection circuit the circuit requires a headphone socket with a switch that closes on insertion. it detects both headphones and phone headsets. any gpio pin can be used, provided that it is configured as an input. hookswitch detection the circuit diagram below shows how to detect when the ?hookswitch? of a phone headset is pressed (pressing the hookswitch is equivalent to lifting the receiver in a stationary telephone). gpio interrupt logic mic lr hook switch 47 ? + - + - hpoutl hpoutr micl/micr agnd 680 ? ? 2.2k ? micbias phone headset wm9711l figure 23 hookswitch detection circuit the circuit uses a gpio pin as a sense input. the impedance of the microphone and the resistor in the micbias path must be such that the potential at the gpio pin is above 0.7 dbvdd when the hookswitch is open, and below 0.3 dbvdd when it is closed.
wm9711l production data w pd rev 4.1 april 2004 64 package drawing - qfn e dm029.c fl: 48 pin qfn plastic package 7 x 7 x 0.9 mm body, 0.50 mm lead pitch index area (d/2 x e/2) top view c aaa 2 x see detail 2 e2 e2/2 b d2 24 l d2/2 c aaa 2 x 25 36 37 48 1 12 13 d e e datum see detail 1 c 0.08 c ccc a a1 c (a3) seating plane detail 3 detail 3 detail 2 terminal tip r e/2 1 detail 1 0.35mm 45 degrees (a3) g t h w b exposed lead half etch tie bar symbols dimensions (mm) min nom max note a b d d2 e e2 e l 0.80 0.90 1.00 0.30 0.25 0.18 7.00 bsc 5.25 5.15 5.00 7.00 bsc 0.5 bsc 5.15 5.25 5.00 0.30 0.4 0.50 1 a1 a3 0 0.02 0.05 0.20 ref g h 0.213 0.1 notes: 1. dimension b applied to metallized terminal and is measured between 0.15 mm and 0.30 mm from terminal tip. 2. all dimensions are in millimetres 3. the terminal #1 identifier and terminal numbering convention shall conform to jesd 95-1 spp-002. 4. coplanarity applies to the exposed heat sink slug as well as the terminals. 5. this drawing is subject to change without notice. jedec, mo-220, variation vkkd-2 tolerances of form and position t w aaa bbb ccc 0.1 0.2 0.15 0.10 0.10 ref
production data wm9711l w pd rev 4.1 april 2004 65 package drawing ? tqfp notes: a. all linear dimensions are in millimeters. b. this drawing is subject to change without notice. c. body dimensions do not include mold flash or protrusion, not to exceed 0.25mm. d. meets jedec.95 ms-026, variation = abc. refer to this specification for further details. dm004.c ft: 48 pin tqfp (7 x 7 x 1.0 mm) symbols dimensions (mm) min nom max a ----- ----- 1.20 a 1 0.05 ----- 0.15 a 2 0.95 1.00 1.05 b 0.17 0.22 0.27 c 0.09 ----- 0.20 d 9.00 bsc d 1 7.00 bsc e 9.00 bsc e 1 7.00 bsc e 0.50 bsc l 0.45 0.60 0.75 0 o 3.5 o 7 o tolerances of form and position ccc 0.08 ref: jedec.95, ms-026 25 36 e b 12 1 d1 d e1 e 13 24 37 48 a a2 a1 seating plane ccc c -c- c l
wm9711l production data w pd rev 4.1 april 2004 66 important notice wolfson microelectronics plc (wm) reserve the right to make changes to their products or to discontinue any product or service without notice, and advise customers to obtain the latest version of relevant information to verify, before placing orders, that information being relied on is current. all products are sold subject to the wm terms and conditions of sale supplied at the time of order acknowledgement, including those pertaining to warranty, patent infringement, and limitation of liability. wm warrants performance of its products to the specifications applicable at the time of sale in accordance with wm?s standard warranty. testing and other quality control techniques are utilised to the extent wm deems necessary to support this warranty. specific testing of all parameters of each device is not necessarily performed, except those mandated by government requirements. in order to minimise risks associated with customer applications, adequate design and operating safeguards must be used by the customer to minimise inherent or procedural hazards. wolfson products are not authorised for use as critical components in life support devices or systems without the express written approval of an officer of the company. life support devices or systems are devices or systems that are intended for surgical implant into the body, or support or sustain life, and whose failure to perform when properly used in accordance with instructions for use provided, can be reasonably expected to result in a significant injury to the user. a critical component is any component of a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system, or to affect its safety or effectiveness. wm assumes no liability for applications assistance or customer product design. wm does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right of wm covering or relating to any combination, machine, or process in which such products or services might be or are used. wm?s publication of information regarding any third party?s products or services does not constitute wm?s approval, license, warranty or endorsement thereof. reproduction of information from the wm web site or datasheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations and notices. representation or reproduction of this information with alteration voids all warranties provided for an associated wm product or service, is an unfair and deceptive business practice, and wm is not responsible nor liable for any such use. resale of wm?s products or services with statements different from or beyond the parameters stated by wm for that product or service voids all express and any implied warranties for the associated wm product or service, is an unfair and deceptive business practice, and wm is not responsible nor liable for any such use. address: wolfson microelectronics plc 26 westfield road edinburgh eh11 2qb united kingdom tel :: +44 (0)131 272 7000 fax :: +44 (0)131 272 7001 email :: sales@wolfsonmicro.com


▲Up To Search▲   

 
Price & Availability of WM9711LEFTRV

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X